1 | material Flare
|
---|
2 | {
|
---|
3 | technique
|
---|
4 | {
|
---|
5 | pass
|
---|
6 | {
|
---|
7 | //cull_hardware none
|
---|
8 | lighting off
|
---|
9 | scene_blend add
|
---|
10 | //scene_blend_op add
|
---|
11 | //scene_blend_op_alpha add
|
---|
12 | //scene_blend_alpha add
|
---|
13 | //depth_check off
|
---|
14 | depth_write off
|
---|
15 |
|
---|
16 | texture_unit
|
---|
17 | {
|
---|
18 | texture flare.png
|
---|
19 | }
|
---|
20 | }
|
---|
21 | }
|
---|
22 | }
|
---|
23 |
|
---|
24 |
|
---|
25 | material Examples/EveningSkyBox
|
---|
26 | {
|
---|
27 | technique
|
---|
28 | {
|
---|
29 | pass
|
---|
30 | {
|
---|
31 | lighting off
|
---|
32 | depth_write off
|
---|
33 |
|
---|
34 | texture_unit
|
---|
35 | {
|
---|
36 | cubic_texture morning.jpg separateUV
|
---|
37 | tex_address_mode clamp
|
---|
38 | }
|
---|
39 | }
|
---|
40 | }
|
---|
41 | }
|
---|
42 |
|
---|
43 | material Examples/MorningSkyBox
|
---|
44 | {
|
---|
45 | technique
|
---|
46 | {
|
---|
47 | pass
|
---|
48 | {
|
---|
49 | vertex_program_ref GTP/Basic/PlainTex_VS
|
---|
50 | {
|
---|
51 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
52 | }
|
---|
53 | fragment_program_ref GTP/Basic/PlainTex2DColored_PS
|
---|
54 | {
|
---|
55 | param_named color float4 10 10 10 1
|
---|
56 | }
|
---|
57 | depth_write off
|
---|
58 | texture_unit
|
---|
59 | {
|
---|
60 | cubic_texture Forest.dds separateUV
|
---|
61 | //cubic_texture morning.jpg separateUV
|
---|
62 | tex_address_mode clamp
|
---|
63 | }
|
---|
64 | }
|
---|
65 | }
|
---|
66 | }
|
---|
67 |
|
---|
68 | material GameTools/Rockwall
|
---|
69 | {
|
---|
70 | technique
|
---|
71 | {
|
---|
72 | pass
|
---|
73 | {
|
---|
74 | lighting off
|
---|
75 | texture_unit
|
---|
76 | {
|
---|
77 | texture rockwall.tga
|
---|
78 | //env_map cubic_normal
|
---|
79 | //vertex_texture true
|
---|
80 | }
|
---|
81 | }
|
---|
82 | }
|
---|
83 | }
|
---|
84 |
|
---|
85 | material GameTools/Standard
|
---|
86 | {
|
---|
87 | technique
|
---|
88 | {
|
---|
89 | pass
|
---|
90 | {
|
---|
91 | ambient 0.1 0.11 0.15
|
---|
92 | diffuse 0.8 0.9 1.0
|
---|
93 | }
|
---|
94 | }
|
---|
95 | }
|
---|
96 |
|
---|
97 | material TestPlane
|
---|
98 | {
|
---|
99 | technique
|
---|
100 | {
|
---|
101 | pass
|
---|
102 | {
|
---|
103 | //ambient 0.8 0.8 0.8
|
---|
104 | //diffuse 0.0 0.0 0.0
|
---|
105 | //specular 0.0 0.0 0.0 0.0
|
---|
106 | //lighting off
|
---|
107 | IllumTechniques
|
---|
108 | {
|
---|
109 | RenderTechnique CausticReceiver
|
---|
110 | {
|
---|
111 | max_caster_count 10
|
---|
112 | }
|
---|
113 | //RenderTechnique DepthShadowReceiver
|
---|
114 | //{
|
---|
115 |
|
---|
116 | //}
|
---|
117 | }
|
---|
118 | texture_unit
|
---|
119 | {
|
---|
120 | texture rockWall.tga
|
---|
121 | }
|
---|
122 |
|
---|
123 | }
|
---|
124 | }
|
---|
125 | }
|
---|
126 |
|
---|
127 | material GameTools/Blur
|
---|
128 | {
|
---|
129 |
|
---|
130 | technique
|
---|
131 | {
|
---|
132 |
|
---|
133 | pass
|
---|
134 | {
|
---|
135 | vertex_program_ref GameTools/BlurVS
|
---|
136 | {
|
---|
137 |
|
---|
138 | }
|
---|
139 | fragment_program_ref GameTools/BlurPS
|
---|
140 | {
|
---|
141 | param_named_auto width viewport_width
|
---|
142 | param_named_auto height viewport_height
|
---|
143 | }
|
---|
144 | texture_unit
|
---|
145 | {
|
---|
146 | filtering bilinear
|
---|
147 | }
|
---|
148 |
|
---|
149 | }
|
---|
150 | }
|
---|
151 | }
|
---|
152 |
|
---|
153 | material GameTools/BlurLightVolume
|
---|
154 | {
|
---|
155 |
|
---|
156 | technique
|
---|
157 | {
|
---|
158 |
|
---|
159 | pass
|
---|
160 | {
|
---|
161 | depth_check off
|
---|
162 | cull_hardware none
|
---|
163 | scene_blend alpha_blend
|
---|
164 |
|
---|
165 | vertex_program_ref GameTools/BlurVS
|
---|
166 | {
|
---|
167 |
|
---|
168 | }
|
---|
169 | fragment_program_ref GameTools/CopyPS
|
---|
170 | {
|
---|
171 | param_named_auto width viewport_width
|
---|
172 | param_named_auto height viewport_height
|
---|
173 | param_named alpha float 0.05
|
---|
174 | }
|
---|
175 | texture_unit
|
---|
176 | {
|
---|
177 | filtering bilinear
|
---|
178 | }
|
---|
179 |
|
---|
180 | }
|
---|
181 | }
|
---|
182 | }
|
---|
183 |
|
---|
184 | material GameTools/BlurCubeFace
|
---|
185 | {
|
---|
186 |
|
---|
187 | technique
|
---|
188 | {
|
---|
189 |
|
---|
190 | pass
|
---|
191 | {
|
---|
192 | vertex_program_ref GameTools/BlurCubeFaceVS
|
---|
193 | {
|
---|
194 |
|
---|
195 | }
|
---|
196 | fragment_program_ref GameTools/BlurCubeFacePS
|
---|
197 | {
|
---|
198 | param_named_auto width viewport_width
|
---|
199 | param_named_auto height viewport_height
|
---|
200 | param_named face float 0
|
---|
201 | }
|
---|
202 | texture_unit
|
---|
203 | {
|
---|
204 | filtering bilinear
|
---|
205 | }
|
---|
206 |
|
---|
207 | }
|
---|
208 | }
|
---|
209 | }
|
---|
210 |
|
---|
211 | vertex_program PhaseVS hlsl
|
---|
212 | {
|
---|
213 | source GameTools_Phase.hlsl
|
---|
214 | entry_point PhaseVS
|
---|
215 | target vs_2_0
|
---|
216 | }
|
---|
217 |
|
---|
218 | fragment_program Phase_HenyeyGreenSteinPS hlsl
|
---|
219 | {
|
---|
220 | source GameTools_Phase.hlsl
|
---|
221 | entry_point HenyeyGreensteinPS
|
---|
222 | target ps_2_0
|
---|
223 | }
|
---|
224 |
|
---|
225 | material Phase_HenyeyGreenStein
|
---|
226 | {
|
---|
227 |
|
---|
228 | technique
|
---|
229 | {
|
---|
230 |
|
---|
231 | pass
|
---|
232 | {
|
---|
233 | vertex_program_ref PhaseVS
|
---|
234 | {
|
---|
235 |
|
---|
236 | }
|
---|
237 | fragment_program_ref Phase_HenyeyGreenSteinPS
|
---|
238 | {
|
---|
239 |
|
---|
240 | }
|
---|
241 |
|
---|
242 | }
|
---|
243 | }
|
---|
244 | }
|
---|
245 |
|
---|
246 |
|
---|
247 |
|
---|