source: GTP/trunk/App/Demos/Illum/IBRBillboardCloudTrees/Shark3D/demo_v5x0x7_t164x31u_enterpr_kwin32/src/res/level/shader/lights.s3d_shader @ 2330

Revision 2330, 4.8 KB checked in by igarcia, 17 years ago (diff)
Line 
1// Machine-made Shark 3D Snake Text 2x0 Stream. Format: ascii.
2shader_array
3{
4    name "spotlight_shmap"
5    sort "light_projshmap"
6    ident "eng_shader_std.group"
7    param
8    {
9        env "shaderenv"
10        init_method "init_method"
11        child_array
12        {
13            ident "eng_shader_std.lightparam"
14            param
15            {
16                env "shaderenv"
17                methods "main_method"
18                diffuse 0.92549 0.941177 0.937255
19                specular 0.882353 0.882353 0.882353
20                ambient 1.0 1.0 1.0
21                range 100.0
22                multiplier 0.61
23                diffuse_var "light_diffuse"
24                ambient_var "light_ambient"
25                specular_var "light_specular"
26                cenrange_var "light_cenrange"
27            }
28        }
29        {
30            ident "eng_shader_std.projmat"
31            param
32            {
33                env "shaderenv"
34                methods "init_method"
35                proj_ortho 0
36                proj_open_x 2.46
37                proj_open_y 2.46
38                proj_center_x 0.0
39                proj_center_y 0.0
40                proj_neg_z 2.2
41                proj_pos_z 100.0
42                apply_view_to_obj 1
43                projmat_var "light_projmat"
44            }
45        }
46        {
47            ident "eng_shader_std.directtexchan"
48            param
49            {
50                env "shaderenv"
51                methods "init_method"
52                tex "tex:level/texture/spotbright_clamp.tga"
53                texchan_var "light_projtex"
54                samplermode_clamp 1
55                samplermode_filter 1
56            }
57        }
58        {
59            ident "eng_shader_std.lightenter"
60            param
61            {
62                env "shaderenv"
63                cenrange_var "light_cenrange"
64                projmat_var "light_projmat"
65                enter_array
66                {
67                    triggers "main_trigger" "mirror_trigger"
68                    method "main_method"
69                }
70            }
71        }
72        {
73            ident "eng_shader_special.projtotex"
74            param
75            {
76                env "shaderenv"
77                methods "main_method"
78                enum_trigger "gen_shmap_trigger"
79                rank -99999
80                z_shift 0.0
81                depth_bias_overlay 1.5
82                depth_bias_offs 1.5
83                max_map_width 1024
84                max_map_height 1024
85                destprop_antialias 0
86                dest_array
87                {
88                    from_var ""
89                    to_var "light_shmap"
90                    texprop_restrusage 0
91                    texprop_depth 1
92                    texprop_float 1
93                    texprop_comp 3
94                    texprop_bitspercomp 16
95                    samplermode_filter 1
96                    samplermode_clamp 1
97                }
98                projmat_var "light_projmat"
99            }
100        }
101        {
102            ident "eng_shader_std.lightenum"
103            param
104            {
105                env "shaderenv"
106                methods "main_method"
107                rank 32000
108                cenrange_var "light_cenrange"
109                projmat_var "light_projmat"
110                coll_var "receivers"
111            }
112        }
113        {
114            ident "eng_shader_std.collexec"
115            param
116            {
117                env "shaderenv"
118                methods "main_method"
119                coll_var "receivers"
120                rank 32000
121                exec_trigger "lightshmap_trigger"
122                exec_param_array
123                {
124                    src_var "light_cenrange"
125                    dest_extvar "ext_light_cenrange"
126                }
127                {
128                    src_var "light_ambient"
129                    dest_extvar "ext_light_ambient"
130                }
131                {
132                    src_var "light_diffuse"
133                    dest_extvar "ext_light_diffuse"
134                }
135                {
136                    src_var "light_specular"
137                    dest_extvar "ext_light_specular"
138                }
139                {
140                    src_var "light_projtex"
141                    dest_extvar "ext_light_projtex"
142                }
143                {
144                    src_var "light_projmat"
145                    dest_extvar "ext_light_projmat"
146                }
147                {
148                    src_var "light_shmap"
149                    dest_extvar "ext_light_shmap"
150                }
151                {
152                    src_var "light_projmat"
153                    dest_extvar "ext_light_shmapmat"
154                }
155            }
156        }
157    }
158}
159{
160    name "inactive"
161    ident ""
162    param
163    {
164    }
165}
166$
Note: See TracBrowser for help on using the repository browser.