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

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