[2269] | 1 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 2 | //
|
---|
| 3 | // ## ######
|
---|
| 4 | // ###### ###
|
---|
| 5 | // ## ############### Shark 3D Engine (www.shark3d.com)
|
---|
| 6 | // ########## # # #
|
---|
| 7 | // ######## Copyright (c) 1996-2006 Spinor GmbH.
|
---|
| 8 | // ######### # # # All rights reserved.
|
---|
| 9 | // ## ##########
|
---|
| 10 | // ##
|
---|
| 11 | //
|
---|
| 12 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 13 |
|
---|
| 14 | ogl
|
---|
| 15 | {
|
---|
| 16 | glsl
|
---|
| 17 | {
|
---|
| 18 | vertshader
|
---|
| 19 | {
|
---|
| 20 | code_variant_array
|
---|
| 21 | {
|
---|
| 22 | req_ver "1x0"
|
---|
| 23 | code_array "levelutil/shader/prog/ogl_glsl/"
|
---|
| 24 | & "lightfilter_ogl_glsl_vs1x0.s3d_shadercode_run"
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | fragshader
|
---|
| 29 | {
|
---|
| 30 | code_variant_array
|
---|
| 31 | {
|
---|
| 32 | req_ver "1x0"
|
---|
| 33 | code_array "levelutil/shader/prog/ogl_glsl/"
|
---|
| 34 | & "lightfilter_ogl_glsl_fs1x0.s3d_shadercode_run"
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | predefine_array
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | param_array
|
---|
| 41 | {
|
---|
| 42 | src_progvar "prog_passinfo"
|
---|
| 43 | dest_codevar "passInfo"
|
---|
| 44 | type "float4"
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | tex_rcpsize_codevar_array "tex0RcpSize"
|
---|
| 48 |
|
---|
| 49 | sampler_array "brightTex"
|
---|
| 50 | }
|
---|
| 51 | }
|
---|
| 52 |
|
---|
| 53 | d3d9
|
---|
| 54 | {
|
---|
| 55 | hlsl_vertshader
|
---|
| 56 | {
|
---|
| 57 | code_variant_array
|
---|
| 58 | {
|
---|
| 59 | profile "2x0"
|
---|
| 60 | entry_point "main"
|
---|
| 61 | code "levelutil/shader/prog/d3d9_hlsl/"
|
---|
| 62 | & "lightfilter_d3d9_hlsl_vs2x0.s3d_shadercode_run"
|
---|
| 63 | }
|
---|
| 64 |
|
---|
| 65 | tracking
|
---|
| 66 | {
|
---|
| 67 | codevar "matProjView"
|
---|
| 68 | slot 0
|
---|
| 69 | chan "projview"
|
---|
| 70 | trans "identity"
|
---|
| 71 | }
|
---|
| 72 |
|
---|
| 73 | param_array
|
---|
| 74 | {
|
---|
| 75 | src_progvar "prog_passinfo"
|
---|
| 76 | dest_codevar "passInfo"
|
---|
| 77 | type "float4"
|
---|
| 78 | }
|
---|
| 79 |
|
---|
| 80 | tex_rcpsize_codevar_array "tex0RcpSize"
|
---|
| 81 | }
|
---|
| 82 |
|
---|
| 83 | hlsl_pixshader
|
---|
| 84 | {
|
---|
| 85 | code_variant_array
|
---|
| 86 | {
|
---|
| 87 | profile "2x0"
|
---|
| 88 | entry_point "main"
|
---|
| 89 | code "levelutil/shader/prog/d3d9_hlsl/"
|
---|
| 90 | & "lightfilter_d3d9_hlsl_ps2x0.s3d_shadercode_run"
|
---|
| 91 | }
|
---|
| 92 |
|
---|
| 93 | param_array
|
---|
| 94 |
|
---|
| 95 | predefine_array
|
---|
| 96 | }
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 | //#ifdef S3D_GENERAL_PLATFORM_XE
|
---|
| 100 | xe
|
---|
| 101 | {
|
---|
| 102 | hlsl_vertshader
|
---|
| 103 | {
|
---|
| 104 | code_variant_array
|
---|
| 105 | {
|
---|
| 106 | profile "2x0"
|
---|
| 107 | entry_point "main"
|
---|
| 108 | code "levelutil/shader/prog/d3d9_hlsl/"
|
---|
| 109 | & "lightfilter_d3d9_hlsl_vs2x0.s3d_shadercode_run"
|
---|
| 110 | }
|
---|
| 111 |
|
---|
| 112 | tracking
|
---|
| 113 | {
|
---|
| 114 | codevar "matProjView"
|
---|
| 115 | slot 0
|
---|
| 116 | chan "projview"
|
---|
| 117 | trans "identity"
|
---|
| 118 | }
|
---|
| 119 |
|
---|
| 120 | param_array
|
---|
| 121 | {
|
---|
| 122 | src_progvar "prog_passinfo"
|
---|
| 123 | dest_codevar "passInfo"
|
---|
| 124 | type "float4"
|
---|
| 125 | }
|
---|
| 126 |
|
---|
| 127 | tex_rcpsize_codevar_array "tex0RcpSize"
|
---|
| 128 | }
|
---|
| 129 |
|
---|
| 130 | hlsl_pixshader
|
---|
| 131 | {
|
---|
| 132 | code_variant_array
|
---|
| 133 | {
|
---|
| 134 | profile "2x0"
|
---|
| 135 | entry_point "main"
|
---|
| 136 | code "levelutil/shader/prog/d3d9_hlsl/"
|
---|
| 137 | & "lightfilter_d3d9_hlsl_ps2x0.s3d_shadercode_run"
|
---|
| 138 | }
|
---|
| 139 |
|
---|
| 140 | param_array
|
---|
| 141 |
|
---|
| 142 | predefine_array
|
---|
| 143 | }
|
---|
| 144 | }
|
---|
| 145 | //#endif
|
---|