source: GTP/trunk/App/Demos/Illum/Shark3D/version164x12u/IllumDemo/src/res/levelutil/shader/prog/standard.s3d_shaderprog @ 2196

Revision 2196, 5.4 KB checked in by szirmay, 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
51// D3D9 Highlevel Shaderlanguage
52d3d9
53{
54    hlsl_vertshader
55    {
56        code_variant_array
57        {
58            profile "2x0"
59            entry_point "main"
60            code "levelutil/shader/prog/d3d9_hlsl/"
61                    & "standard_d3d9_hlsl_vs2x0.s3d_shadercode_run"
62            //debug_code_file "src/res/levelutil/shader/prog/d3d9_hlsl/"
63            //      & "standard_d3d9_hlsl_vs2x0.s3d_shadercode"
64        }
65        {
66            profile "1x1"
67            entry_point "main"
68            code "levelutil/shader/prog/d3d9_hlsl/"
69                    & "standard_d3d9_hlsl_vs1x1.s3d_shadercode_run"
70            //debug_code_file "src/res/levelutil/shader/prog/d3d9_hlsl/"
71            //      & "standard_d3d9_hlsl_vs1x1.s3d_shadercode"
72        }
73
74        tracking
75        {
76            codevar "projMat"
77            slot 0
78            chan "proj"
79            trans "identity"
80        }
81        {
82            codevar "matBone"
83            slot 0
84            chan "bone"
85            trans "identity"
86        }
87
88        light_array
89        {
90            cnt 5
91            pos_codevar "lightArray[$].pos"
92            dir_codevar ""
93            ambient_codevar "lightArray[$].ambient"
94            diffuse_codevar "lightArray[$].diffuse"
95            specular_codevar "lightArray[$].specular"
96            atten_codevar "lightArray[$].atten"
97        }
98        light_activecnt_codevar "activeLights"
99
100        mtl
101        {
102            power_codevar "mtrlPower"
103            emissive_codevar "mtrlEmissive"
104        }
105
106        predefine_array
107        {
108            name "S3D_USE_BONESUBSCR"
109        }
110        {
111            name "S3D_MATBONE_CNT"
112            val "32"
113        }
114        {
115            name "S3D_LIGHT_CNT"
116            val "5"
117        }
118    }
119
120    hlsl_pixshader
121    {
122        code_variant_array
123        {
124            profile "2x0"
125            entry_point "main"
126            code "levelutil/shader/prog/d3d9_hlsl/"
127                    & "standard_d3d9_hlsl_ps2x0.s3d_shadercode_run"
128        }
129           
130        fog_codevar "paramFog"
131    }
132}
133
134// D3D9 Highlevel Shaderlanguage
135xe
136{
137    hlsl_vertshader
138    {
139        code_variant_array
140        {
141            profile "2x0"
142            entry_point "main"
143            code "levelutil/shader/prog/d3d9_hlsl/"
144                    & "standard_d3d9_hlsl_vs2x0.s3d_shadercode_run"
145            //debug_code_file "src/res/levelutil/shader/prog/d3d9_hlsl/"
146            //      & "standard_d3d9_hlsl_vs2x0.s3d_shadercode"
147        }
148        {
149            profile "1x1"
150            entry_point "main"
151            code "levelutil/shader/prog/d3d9_hlsl/"
152                    & "standard_d3d9_hlsl_vs1x1.s3d_shadercode_run"
153            //debug_code_file "src/res/levelutil/shader/prog/d3d9_hlsl/"
154            //      & "standard_d3d9_hlsl_vs1x1.s3d_shadercode"
155        }
156
157        tracking
158        {
159            codevar "projMat"
160            slot 0
161            chan "proj"
162            trans "identity"
163        }
164        {
165            codevar "matBone"
166            slot 0
167            chan "bone"
168            trans "identity"
169        }
170
171        light_array
172        {
173            cnt 5
174            pos_codevar "lightArray[$].pos"
175            dir_codevar ""
176            ambient_codevar "lightArray[$].ambient"
177            diffuse_codevar "lightArray[$].diffuse"
178            specular_codevar "lightArray[$].specular"
179            atten_codevar "lightArray[$].atten"
180        }
181        light_activecnt_codevar "activeLights"
182
183        mtl
184        {
185            power_codevar "mtrlPower"
186            emissive_codevar "mtrlEmissive"
187        }
188
189        predefine_array
190        {
191            name "S3D_USE_BONESUBSCR"
192        }
193        {
194            name "S3D_MATBONE_CNT"
195            val "32"
196        }
197        {
198            name "S3D_LIGHT_CNT"
199            val "5"
200        }
201    }
202
203    hlsl_pixshader
204    {
205        code_variant_array
206        {
207            profile "2x0"
208            entry_point "main"
209            code "levelutil/shader/prog/d3d9_hlsl/"
210                    & "standard_d3d9_hlsl_ps2x0.s3d_shadercode_run"
211        }
212           
213        fog_codevar "paramFog"
214    }
215}
Note: See TracBrowser for help on using the repository browser.