source: GTP/trunk/App/Demos/Illum/Shark3D/version164x12u/IllumDemoApplication/bin/res/levelutil/shader/prog/standard.s3d_shaderprog_run @ 2269

Revision 2269, 5.4 KB checked in by barsi, 17 years ago (diff)
Line 
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// Shader program configuration.
15// Different drivers access different parameters.
16
17ogl
18{
19    glsl
20    {
21        vertshader
22        {
23            code_variant_array
24            {
25                req_ver "1x0"
26                code_array "levelutil/shader/prog/ogl_glsl/"
27                        & "standard_ogl_glsl_vs1x0.s3d_shadercode_run"
28            }
29
30            tracking
31            {
32                // uniform mat4 matBone[4];
33                cnt 4
34                codevar "matBone[$]"
35                chan "bone"
36                trans "identity"
37            }
38
39            //  attribute vec4 bone_wgh;
40            bone_wgh "boneWgh"
41            //bone_subscr "boneSubscr"
42
43            predefine_array
44            {
45                name "S3D_USE_BONEWGH"
46            }
47        }
48    }
49}
50
51d3d9
52{
53    hlsl_vertshader
54    {
55        code_variant_array
56        {
57            profile "2x0"
58            entry_point "main"
59            code "levelutil/shader/prog/d3d9_hlsl/"
60                    & "standard_d3d9_hlsl_vs2x0.s3d_shadercode_run"
61            //debug_code_file "src/res/levelutil/shader/prog/d3d9_hlsl/"
62            //      & "standard_d3d9_hlsl_vs2x0.s3d_shadercode"
63        }
64        {
65            profile "1x1"
66            entry_point "main"
67            code "levelutil/shader/prog/d3d9_hlsl/"
68                    & "standard_d3d9_hlsl_vs1x1.s3d_shadercode_run"
69            //debug_code_file "src/res/levelutil/shader/prog/d3d9_hlsl/"
70            //      & "standard_d3d9_hlsl_vs1x1.s3d_shadercode"
71        }
72
73        tracking
74        {
75            codevar "projMat"
76            slot 0
77            chan "proj"
78            trans "identity"
79        }
80        {
81            codevar "matBone"
82            slot 0
83            chan "bone"
84            trans "identity"
85        }
86
87        light_array
88        {
89            cnt 5
90            pos_codevar "lightArray[$].pos"
91            dir_codevar ""
92            ambient_codevar "lightArray[$].ambient"
93            diffuse_codevar "lightArray[$].diffuse"
94            specular_codevar "lightArray[$].specular"
95            atten_codevar "lightArray[$].atten"
96        }
97        light_activecnt_codevar "activeLights"
98
99        mtl
100        {
101            power_codevar "mtrlPower"
102            emissive_codevar "mtrlEmissive"
103        }
104
105        predefine_array
106        {
107            name "S3D_USE_BONESUBSCR"
108        }
109        {
110            name "S3D_MATBONE_CNT"
111            val "32"
112        }
113        {
114            name "S3D_LIGHT_CNT"
115            val "5"
116        }
117    }
118
119    hlsl_pixshader
120    {
121        code_variant_array
122        {
123            profile "2x0"
124            entry_point "main"
125            code "levelutil/shader/prog/d3d9_hlsl/"
126                    & "standard_d3d9_hlsl_ps2x0.s3d_shadercode_run"
127        }
128           
129        fog_codevar "paramFog"
130    }
131}
132
133//#ifdef S3D_GENERAL_PLATFORM_XE
134xe
135{
136    hlsl_vertshader
137    {
138        code_variant_array
139        {
140            profile "2x0"
141            entry_point "main"
142            code "levelutil/shader/prog/d3d9_hlsl/"
143                    & "standard_d3d9_hlsl_vs2x0.s3d_shadercode_run"
144            //debug_code_file "src/res/levelutil/shader/prog/d3d9_hlsl/"
145            //      & "standard_d3d9_hlsl_vs2x0.s3d_shadercode"
146        }
147        {
148            profile "1x1"
149            entry_point "main"
150            code "levelutil/shader/prog/d3d9_hlsl/"
151                    & "standard_d3d9_hlsl_vs1x1.s3d_shadercode_run"
152            //debug_code_file "src/res/levelutil/shader/prog/d3d9_hlsl/"
153            //      & "standard_d3d9_hlsl_vs1x1.s3d_shadercode"
154        }
155
156        tracking
157        {
158            codevar "projMat"
159            slot 0
160            chan "proj"
161            trans "identity"
162        }
163        {
164            codevar "matBone"
165            slot 0
166            chan "bone"
167            trans "identity"
168        }
169
170        light_array
171        {
172            cnt 5
173            pos_codevar "lightArray[$].pos"
174            dir_codevar ""
175            ambient_codevar "lightArray[$].ambient"
176            diffuse_codevar "lightArray[$].diffuse"
177            specular_codevar "lightArray[$].specular"
178            atten_codevar "lightArray[$].atten"
179        }
180        light_activecnt_codevar "activeLights"
181
182        mtl
183        {
184            power_codevar "mtrlPower"
185            emissive_codevar "mtrlEmissive"
186        }
187
188        predefine_array
189        {
190            name "S3D_USE_BONESUBSCR"
191        }
192        {
193            name "S3D_MATBONE_CNT"
194            val "32"
195        }
196        {
197            name "S3D_LIGHT_CNT"
198            val "5"
199        }
200    }
201
202    hlsl_pixshader
203    {
204        code_variant_array
205        {
206            profile "2x0"
207            entry_point "main"
208            code "levelutil/shader/prog/d3d9_hlsl/"
209                    & "standard_d3d9_hlsl_ps2x0.s3d_shadercode_run"
210        }
211           
212        fog_codevar "paramFog"
213    }
214}
215//#endif
Note: See TracBrowser for help on using the repository browser.