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 |
|
---|
17 | ogl
|
---|
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
|
---|
51 | {
|
---|
52 | hlsl_vertshader
|
---|
53 | {
|
---|
54 | code_variant_array
|
---|
55 | {
|
---|
56 | profile "2x0"
|
---|
57 | entry_point "main"
|
---|
58 | code "levelutil/shader/prog/d3d9_hlsl/"
|
---|
59 | & "plain_pointtex_d3d9_hlsl_vs2x0.s3d_shadercode_run"
|
---|
60 | }
|
---|
61 |
|
---|
62 | tracking
|
---|
63 | {
|
---|
64 | codevar "projMat"
|
---|
65 | slot 0
|
---|
66 | chan "proj"
|
---|
67 | trans "identity"
|
---|
68 | }
|
---|
69 | {
|
---|
70 | codevar "matView"
|
---|
71 | slot 0
|
---|
72 | chan "view"
|
---|
73 | trans "identity"
|
---|
74 | }
|
---|
75 | {
|
---|
76 | codevar "matBone"
|
---|
77 | slot 0
|
---|
78 | chan "bone"
|
---|
79 | trans "identity"
|
---|
80 | }
|
---|
81 |
|
---|
82 | predefine_array
|
---|
83 | {
|
---|
84 | name "S3D_USE_BONESUBSCR"
|
---|
85 | }
|
---|
86 | {
|
---|
87 | name "S3D_MATBONE_CNT"
|
---|
88 | val "32"
|
---|
89 | }
|
---|
90 |
|
---|
91 | mtl
|
---|
92 | {
|
---|
93 | power_codevar ""
|
---|
94 | emissive_codevar "mtrlEmissive"
|
---|
95 | }
|
---|
96 |
|
---|
97 | }
|
---|
98 |
|
---|
99 | hlsl_pixshader
|
---|
100 | {
|
---|
101 | code_variant_array
|
---|
102 | {
|
---|
103 | profile "2x0"
|
---|
104 | entry_point "main"
|
---|
105 | code "levelutil/shader/prog/d3d9_hlsl/"
|
---|
106 | & "plain_pointtex_d3d9_hlsl_ps2x0.s3d_shadercode_run"
|
---|
107 | }
|
---|
108 | }
|
---|
109 | }
|
---|
110 |
|
---|
111 | //#ifdef S3D_GENERAL_PLATFORM_XE
|
---|
112 | xe
|
---|
113 | {
|
---|
114 | hlsl_vertshader
|
---|
115 | {
|
---|
116 | code_variant_array
|
---|
117 | {
|
---|
118 | profile "2x0"
|
---|
119 | entry_point "main"
|
---|
120 | code "levelutil/shader/prog/d3d9_hlsl/"
|
---|
121 | & "plain_pointtex_d3d9_hlsl_vs2x0.s3d_shadercode_run"
|
---|
122 | }
|
---|
123 |
|
---|
124 | tracking
|
---|
125 | {
|
---|
126 | codevar "projMat"
|
---|
127 | slot 0
|
---|
128 | chan "proj"
|
---|
129 | trans "identity"
|
---|
130 | }
|
---|
131 | {
|
---|
132 | codevar "matView"
|
---|
133 | slot 0
|
---|
134 | chan "view"
|
---|
135 | trans "identity"
|
---|
136 | }
|
---|
137 | {
|
---|
138 | codevar "matBone"
|
---|
139 | slot 0
|
---|
140 | chan "bone"
|
---|
141 | trans "identity"
|
---|
142 | }
|
---|
143 |
|
---|
144 | predefine_array
|
---|
145 | {
|
---|
146 | name "S3D_USE_BONESUBSCR"
|
---|
147 | }
|
---|
148 | {
|
---|
149 | name "S3D_MATBONE_CNT"
|
---|
150 | val "32"
|
---|
151 | }
|
---|
152 |
|
---|
153 | mtl
|
---|
154 | {
|
---|
155 | power_codevar ""
|
---|
156 | emissive_codevar "mtrlEmissive"
|
---|
157 | }
|
---|
158 |
|
---|
159 | }
|
---|
160 |
|
---|
161 | hlsl_pixshader
|
---|
162 | {
|
---|
163 | code_variant_array
|
---|
164 | {
|
---|
165 | profile "2x0"
|
---|
166 | entry_point "main"
|
---|
167 | code "levelutil/shader/prog/d3d9_hlsl/"
|
---|
168 | & "plain_pointtex_d3d9_hlsl_ps2x0.s3d_shadercode_run"
|
---|
169 | }
|
---|
170 |
|
---|
171 | //fog_codevar "paramFog"
|
---|
172 | }
|
---|
173 | }
|
---|
174 | //#endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.