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

Revision 2196, 3.7 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                        & "plain_ogl_glsl_vs1x0.s3d_shadercode_run"
28            }
29
30            tracking
31            {
32                cnt 4
33                codevar "matBone[$]"
34                chan "bone"
35                trans "identity"
36            }
37
38            //  attribute vec4 bone_wgh;
39            bone_wgh "boneWgh"
40            //bone_subscr "boneSubscr"
41
42            predefine_array
43            {
44                name "S3D_USE_BONEWGH"
45            }
46        }
47    }
48}
49
50// D3D9 Highlevel Shaderlanguage
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                    & "plain_point_d3d9_hlsl_vs2x0.s3d_shadercode_run"
61        }
62
63        tracking
64        {
65            codevar "projMat"
66            slot 0
67            chan "proj"
68            trans "identity"
69        }
70        {
71            codevar "matView"
72            slot 0
73            chan "view"
74            trans "identity"
75        }
76        {
77            codevar "matBone"
78            slot 0
79            chan "bone"
80            trans "identity"
81        }
82
83        predefine_array
84        {
85            name "S3D_USE_BONESUBSCR"
86        }
87        {
88            name "S3D_MATBONE_CNT"
89            val "32"
90        }
91
92        mtl
93        {
94            power_codevar ""
95            emissive_codevar "mtrlEmissive"
96        }
97
98    }
99
100    hlsl_pixshader
101    {
102        code_variant_array
103        {
104            profile "2x0"
105            entry_point "main"
106            code "levelutil/shader/prog/d3d9_hlsl/"
107                    & "plain_point_d3d9_hlsl_ps2x0.s3d_shadercode_run"
108        }
109    }
110}
111
112// D3D9 Highlevel Shaderlanguage
113xe
114{
115    hlsl_vertshader
116    {
117        code_variant_array
118        {
119            profile "2x0"
120            entry_point "main"
121            code "levelutil/shader/prog/d3d9_hlsl/"
122                    & "plain_point_d3d9_hlsl_vs2x0.s3d_shadercode_run"
123        }
124
125        tracking
126        {
127            codevar "projMat"
128            slot 0
129            chan "proj"
130            trans "identity"
131        }
132        {
133            codevar "matView"
134            slot 0
135            chan "view"
136            trans "identity"
137        }
138        {
139            codevar "matBone"
140            slot 0
141            chan "bone"
142            trans "identity"
143        }
144
145        predefine_array
146        {
147            name "S3D_USE_BONESUBSCR"
148        }
149        {
150            name "S3D_MATBONE_CNT"
151            val "32"
152        }
153
154        mtl
155        {
156            power_codevar ""
157            emissive_codevar "mtrlEmissive"
158        }
159
160    }
161
162    hlsl_pixshader
163    {
164        code_variant_array
165        {
166            profile "2x0"
167            entry_point "main"
168            code "levelutil/shader/prog/d3d9_hlsl/"
169                    & "plain_point_d3d9_hlsl_ps2x0.s3d_shadercode_run"
170        }
171
172        //fog_codevar "paramFog"
173    }
174}
Note: See TracBrowser for help on using the repository browser.