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

Revision 2196, 4.3 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// D3D9 Highlevel Shaderlanguage
15d3d9
16{
17    hlsl_vertshader
18    {
19        code_variant_array
20        {
21            profile "1x1"
22            entry_point "main"
23            code "levelutil/shader/prog/d3d9_hlsl/"
24                    & "gen_brightmap_for_softshmap_d3d9_hlsl_vs1x1."
25                    & "s3d_shadercode_run"
26        }
27
28        tracking
29        {
30            codevar "projMat"
31            slot 0
32            chan "proj"
33            trans "identity"
34        }
35        {
36            codevar "matBone"
37            slot 0
38            chan "bone"
39            trans "identity"
40        }
41
42        param_array
43        {
44            src_progvar "prog_light_projmat"
45            dest_codevar "lightProjMat"
46            type "float4x4"
47        }
48        {
49            src_progvar "prog_light_shmapmat"
50            dest_codevar "lightShmapMat"
51            type "float4x4"
52        }
53
54        predefine_array
55        {
56            name "S3D_USE_BONESUBSCR"
57        }
58        {
59            name "S3D_MATBONE_CNT"
60            val "32"
61        }
62    }
63
64    hlsl_pixshader
65    {
66        code_variant_array
67        {
68            profile "2x0"
69            entry_point "main"
70            code "levelutil/shader/prog/d3d9_hlsl/"
71                    & "gen_brightmap_for_softshmap_d3d9_hlsl_ps2x0."
72                    & "s3d_shadercode_run"
73        }
74       
75        param_array
76        {
77            src_progvar "prog_light_intens"
78            dest_codevar "lightIntens"
79            type "float4"
80        }
81
82        tex_size_codevar_array "" "" "lightShmapSize"
83        tex_rcpsize_codevar_array "" "" "lightShmapRcpSize"
84
85        predefine_array
86        {
87            name "S3D_SHMAP_ZBIAS"
88            //val "0.0003" // For no-filtering
89            val "0.0010" // For 4-filtering
90            //val "0.0010" // For 16-filtering
91        }
92    }
93}
94
95// D3D9 Highlevel Shaderlanguage
96xe
97{
98    hlsl_vertshader
99    {
100        code_variant_array
101        {
102            profile "1x1"
103            entry_point "main"
104            code "levelutil/shader/prog/d3d9_hlsl/"
105                    & "gen_brightmap_for_softshmap_d3d9_hlsl_vs1x1."
106                    & "s3d_shadercode_run"
107        }
108
109        tracking
110        {
111            codevar "projMat"
112            slot 0
113            chan "proj"
114            trans "identity"
115        }
116        {
117            codevar "matBone"
118            slot 0
119            chan "bone"
120            trans "identity"
121        }
122
123        param_array
124        {
125            src_progvar "prog_light_projmat"
126            dest_codevar "lightProjMat"
127            type "float4x4"
128        }
129        {
130            src_progvar "prog_light_shmapmat"
131            dest_codevar "lightShmapMat"
132            type "float4x4"
133        }
134
135        predefine_array
136        {
137            name "S3D_USE_BONESUBSCR"
138        }
139        {
140            name "S3D_MATBONE_CNT"
141            val "32"
142        }
143    }
144
145    hlsl_pixshader
146    {
147        code_variant_array
148        {
149            profile "2x0"
150            entry_point "main"
151            code "levelutil/shader/prog/d3d9_hlsl/"
152                    & "gen_brightmap_for_softshmap_d3d9_hlsl_ps2x0."
153                    & "s3d_shadercode_run"
154        }
155
156        param_array
157        {
158            src_progvar "prog_light_intens"
159            dest_codevar "lightIntens"
160            type "float4"
161        }
162
163        tex_size_codevar_array "" "" "lightShmapSize"
164        tex_rcpsize_codevar_array "" "" "lightShmapRcpSize"
165
166        predefine_array
167        /*
168        {
169            name "S3D_SHMAP_FILTER4"
170            val ""
171        }
172        */
173        {
174            name "S3D_SHMAP_ZBIAS"
175            //val "0.0003" // For no-filtering
176            //val "0.0010" // For 4-filtering
177            val "0.0010" // For 16-filtering
178        }
179    }
180}
Note: See TracBrowser for help on using the repository browser.