Debian Codegraph @

Effects/cloud.eff

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <PropertyList>
3 <name>Effects/cloud</name>
4 <parameters>
5 <texture n ="0">
6 </texture>
7 <range><use>/sim/rendering/clouds3d-vis-range</use></range>
8 <detail><use>/sim/rendering/clouds3d-detail-range</use></detail>
9 <scattering><use>/rendering/scene/scattering</use></scattering>
10 <terminator><use>/environment/terminator-relative-position-m</use></terminator>
11 <altitude><use>/sim/rendering/eye-altitude-m</use></altitude>
12 <cloud_self_shading><use>/environment/cloud-self-shading</use></cloud_self_shading>
13 <moonlight><use>/environment/moonlight</use></moonlight>
14 <air_pollution><use>/environment/air-pollution-norm</use></air_pollution>
15 <visibility><use>/environment/visibility-m</use></visibility>
16 <flash><use>/environment/lightning/flash</use></flash>
17 <lightning-pos-x><use>/environment/lightning/lightning-pos-x</use></lightning-pos-x>
18 <lightning-pos-y><use>/environment/lightning/lightning-pos-y</use></lightning-pos-y>
19 <lightning-range><use>/environment/lightning/lightning-range</use></lightning-range>
20 <use_filtering><use>/sim/rendering/als-filters/use-filtering</use></use_filtering>
21 <gamma><use>/sim/rendering/als-filters/gamma</use></gamma>
22 <brightness><use>/sim/rendering/als-filters/brightness</use></brightness>
23 <delta_T><use>/environment/surface/delta-T-cloud</use></delta_T>
24 <fact_grey><use>/sim/rendering/als-filters/grey-factor</use></fact_grey>
25 <fact_black><use>/sim/rendering/als-filters/black-factor</use></fact_black>
26 <use_night_vision><use>/sim/rendering/als-filters/use-night-vision</use></use_night_vision>
27 <use_IR_vision><use>/sim/rendering/als-filters/use-IR-vision</use></use_IR_vision>
28 <display_xsize><use>/sim/startup/xsize</use></display_xsize>
29 <display_ysize><use>/sim/startup/ysize</use></display_ysize>
30 </parameters>
31
32 <technique n="8">
33 <predicate>
34 <and>
35 <property>/sim/rendering/shaders/skydome</property>
36 <less-equal>
37 <value type="float">1.0</value>
38 <shader-language/>
39 </less-equal>
40 <less-equal>
41 <value type="float">1.0</value>
42 <float-property>/sim/rendering/shaders/clouds</float-property>
43 </less-equal>
44 </and>
45 </predicate>
46 <pass n="0">
47 <!-- This is apparently not used, so maybe we'll blow it way soon. -->
48 <lighting>true</lighting>
49 <material>
50 <ambient type="vec4d">0.5 0.5 0.5 1.0</ambient>
51 <diffuse type="vec4d">0.5 0.5 0.5 1.0</diffuse>
52 <color-mode>off</color-mode>
53 </material>
54 <alpha-test>
55 <comparison>greater</comparison>
56 <reference type="float">0.01</reference>
57 </alpha-test>
58 <shade-model>smooth</shade-model>
59 <blend>
60 <source>src-alpha</source>
61 <destination>one-minus-src-alpha</destination>
62 </blend>
63 <depth>
64 <write-mask>false</write-mask>
65 </depth>
66 <render-bin>
67 <bin-number>10</bin-number>
68 <bin-name>DepthSortedBin</bin-name>
69 </render-bin>
70 <texture-unit>
71 <unit>0</unit>
72 <type>2d</type>
73 <image><use>texture[0]/image</use></image>
74 <wrap-s>clamp</wrap-s>
75 <wrap-t>clamp</wrap-t>
76 </texture-unit>
77 <program>
78 <vertex-shader>Shaders/3dcloud-ALS-detailed.vert</vertex-shader>
79 <fragment-shader>Shaders/3dcloud-ALS-detailed.frag</fragment-shader>
80 <fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
81 <fragment-shader>Shaders/noise.frag</fragment-shader>
82 <attribute>
83 <name>usrAttr1</name>
84 <index>10</index>
85 </attribute>
86 <attribute>
87 <name>usrAttr2</name>
88 <index>11</index>
89 </attribute>
90 </program>
91 <uniform>
92 <name>baseTexture</name>
93 <type>sampler-2d</type>
94 <value type="int">0</value>
95 </uniform>
96 <uniform>
97 <name>range</name>
98 <type>float</type>
99 <value><use>range</use></value>
100 </uniform>
101 <uniform>
102 <name>detail_range</name>
103 <type>float</type>
104 <value><use>detail</use></value>
105 </uniform>
106 <uniform>
107 <name>scattering</name>
108 <type>float</type>
109 <value><use>scattering</use></value>
110 </uniform>
111 <uniform>
112 <name>terminator</name>
113 <type>float</type>
114 <value><use>terminator</use></value>
115 </uniform>
116 <uniform>
117 <name>altitude</name>
118 <type>float</type>
119 <value><use>altitude</use></value>
120 </uniform>
121 <uniform>
122 <name>cloud_self_shading</name>
123 <type>float</type>
124 <value><use>cloud_self_shading</use></value>
125 </uniform>
126 <uniform>
127 <name>moonlight</name>
128 <type>float</type>
129 <value><use>moonlight</use></value>
130 </uniform>
131 <uniform>
132 <name>air_pollution</name>
133 <type>float</type>
134 <value><use>air_pollution</use></value>
135 </uniform>
136 <uniform>
137 <name>visibility</name>
138 <type>float</type>
139 <value><use>visibility</use></value>
140 </uniform>
141 <uniform>
142 <name>flash</name>
143 <type>float</type>
144 <value><use>flash</use></value>
145 </uniform>
146 <uniform>
147 <name>lightning_pos_x</name>
148 <type>float</type>
149 <value><use>lightning-pos-x</use></value>
150 </uniform>
151 <uniform>
152 <name>lightning_pos_y</name>
153 <type>float</type>
154 <value><use>lightning-pos-y</use></value>
155 </uniform>
156 <uniform>
157 <name>lightning_range</name>
158 <type>float</type>
159 <value><use>lightning-range</use></value>
160 </uniform>
161 <uniform>
162 <name>gamma</name>
163 <type>float</type>
164 <value><use>gamma</use></value>
165 </uniform>
166 <uniform>
167 <name>brightness</name>
168 <type>float</type>
169 <value><use>brightness</use></value>
170 </uniform>
171 <uniform>
172 <name>use_filtering</name>
173 <type>bool</type>
174 <value><use>use_filtering</use></value>
175 </uniform>
176 <uniform>
177 <name>use_night_vision</name>
178 <type>bool</type>
179 <value><use>use_night_vision</use></value>
180 </uniform>
181 <uniform>
182 <name>use_IR_vision</name>
183 <type>bool</type>
184 <value><use>use_IR_vision</use></value>
185 </uniform>
186 <uniform>
187 <name>delta_T</name>
188 <type>float</type>
189 <value><use>delta_T</use></value>
190 </uniform>
191 <uniform>
192 <name>fact_grey</name>
193 <type>float</type>
194 <value><use>fact_grey</use></value>
195 </uniform>
196 <uniform>
197 <name>fact_black</name>
198 <type>float</type>
199 <value><use>fact_black</use></value>
200 </uniform>
201 <uniform>
202 <name>display_xsize</name>
203 <type>int</type>
204 <value><use>display_xsize</use></value>
205 </uniform>
206 <uniform>
207 <name>display_ysize</name>
208 <type>int</type>
209 <value><use>display_ysize</use></value>
210 </uniform>
211 <!--<vertex-program-two-side>true</vertex-program-two-side>-->
212 </pass>
213 </technique>
214
215 <technique n="9">
216 <predicate>
217 <and>
218 <property>/sim/rendering/shaders/skydome</property>
219 <less-equal>
220 <value type="float">1.0</value>
221 <shader-language/>
222 </less-equal>
223 </and>
224 </predicate>
225 <pass n="0">
226 <!-- This is apparently not used, so maybe we'll blow it way soon. -->
227 <lighting>true</lighting>
228 <material>
229 <ambient type="vec4d">0.5 0.5 0.5 1.0</ambient>
230 <diffuse type="vec4d">0.5 0.5 0.5 1.0</diffuse>
231 <color-mode>off</color-mode>
232 </material>
233 <alpha-test>
234 <comparison>greater</comparison>
235 <reference type="float">0.01</reference>
236 </alpha-test>
237 <shade-model>smooth</shade-model>
238 <blend>
239 <source>src-alpha</source>
240 <destination>one-minus-src-alpha</destination>
241 </blend>
242 <depth>
243 <write-mask>false</write-mask>
244 </depth>
245 <render-bin>
246 <bin-number>10</bin-number>
247 <bin-name>DepthSortedBin</bin-name>
248 </render-bin>
249 <texture-unit>
250 <unit>0</unit>
251 <type>2d</type>
252 <image><use>texture[0]/image</use></image>
253 <wrap-s>clamp</wrap-s>
254 <wrap-t>clamp</wrap-t>
255 </texture-unit>
256 <program>
257 <vertex-shader>Shaders/3dcloud-ALS.vert</vertex-shader>
258 <vertex-shader>Shaders/filters-ALS.vert</vertex-shader>
259 <fragment-shader>Shaders/3dcloud-ALS.frag</fragment-shader>
260 <fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
261 <fragment-shader>Shaders/noise.frag</fragment-shader>
262 <attribute>
263 <name>usrAttr1</name>
264 <index>10</index>
265 </attribute>
266 <attribute>
267 <name>usrAttr2</name>
268 <index>11</index>
269 </attribute>
270 </program>
271 <uniform>
272 <name>baseTexture</name>
273 <type>sampler-2d</type>
274 <value type="int">0</value>
275 </uniform>
276 <uniform>
277 <name>range</name>
278 <type>float</type>
279 <value><use>range</use></value>
280 </uniform>
281 <uniform>
282 <name>detail_range</name>
283 <type>float</type>
284 <value><use>detail</use></value>
285 </uniform>
286 <uniform>
287 <name>scattering</name>
288 <type>float</type>
289 <value><use>scattering</use></value>
290 </uniform>
291 <uniform>
292 <name>terminator</name>
293 <type>float</type>
294 <value><use>terminator</use></value>
295 </uniform>
296 <uniform>
297 <name>altitude</name>
298 <type>float</type>
299 <value><use>altitude</use></value>
300 </uniform>
301 <uniform>
302 <name>cloud_self_shading</name>
303 <type>float</type>
304 <value><use>cloud_self_shading</use></value>
305 </uniform>
306 <uniform>
307 <name>moonlight</name>
308 <type>float</type>
309 <value><use>moonlight</use></value>
310 </uniform>
311 <uniform>
312 <name>air_pollution</name>
313 <type>float</type>
314 <value><use>air_pollution</use></value>
315 </uniform>
316 <uniform>
317 <name>visibility</name>
318 <type>float</type>
319 <value><use>visibility</use></value>
320 </uniform>
321 <uniform>
322 <name>flash</name>
323 <type>float</type>
324 <value><use>flash</use></value>
325 </uniform>
326 <uniform>
327 <name>lightning_pos_x</name>
328 <type>float</type>
329 <value><use>lightning-pos-x</use></value>
330 </uniform>
331 <uniform>
332 <name>lightning_pos_y</name>
333 <type>float</type>
334 <value><use>lightning-pos-y</use></value>
335 </uniform>
336 <uniform>
337 <name>lightning_range</name>
338 <type>float</type>
339 <value><use>lightning-range</use></value>
340 </uniform>
341 <uniform>
342 <name>gamma</name>
343 <type>float</type>
344 <value><use>gamma</use></value>
345 </uniform>
346 <uniform>
347 <name>brightness</name>
348 <type>float</type>
349 <value><use>brightness</use></value>
350 </uniform>
351 <uniform>
352 <name>use_filtering</name>
353 <type>bool</type>
354 <value><use>use_filtering</use></value>
355 </uniform>
356 <uniform>
357 <name>use_night_vision</name>
358 <type>bool</type>
359 <value><use>use_night_vision</use></value>
360 </uniform>
361 <uniform>
362 <name>use_IR_vision</name>
363 <type>bool</type>
364 <value><use>use_IR_vision</use></value>
365 </uniform>
366 <uniform>
367 <name>delta_T</name>
368 <type>float</type>
369 <value><use>delta_T</use></value>
370 </uniform>
371 <uniform>
372 <name>fact_grey</name>
373 <type>float</type>
374 <value><use>fact_grey</use></value>
375 </uniform>
376 <uniform>
377 <name>fact_black</name>
378 <type>float</type>
379 <value><use>fact_black</use></value>
380 </uniform>
381 <uniform>
382 <name>display_xsize</name>
383 <type>int</type>
384 <value><use>display_xsize</use></value>
385 </uniform>
386 <uniform>
387 <name>display_ysize</name>
388 <type>int</type>
389 <value><use>display_ysize</use></value>
390 </uniform>
391 <!--<vertex-program-two-side>true</vertex-program-two-side>-->
392 </pass>
393 </technique>
394
395 <technique n="10">
396 <predicate>
397 <less-equal>
398 <value type="float">1.0</value>
399 <shader-language/>
400 </less-equal>
401 </predicate>
402 <pass n="0">
403 <!-- This is apparently not used, so maybe we'll blow it way soon. -->
404 <lighting>true</lighting>
405 <material>
406 <ambient type="vec4d">0.5 0.5 0.5 1.0</ambient>
407 <diffuse type="vec4d">0.5 0.5 0.5 1.0</diffuse>
408 <color-mode>off</color-mode>
409 </material>
410 <alpha-test>
411 <comparison>greater</comparison>
412 <reference type="float">0.01</reference>
413 </alpha-test>
414 <shade-model>smooth</shade-model>
415 <blend>
416 <source>src-alpha</source>
417 <destination>one-minus-src-alpha</destination>
418 </blend>
419 <depth>
420 <write-mask>false</write-mask>
421 </depth>
422 <render-bin>
423 <bin-number>10</bin-number>
424 <bin-name>DepthSortedBin</bin-name>
425 </render-bin>
426 <texture-unit>
427 <unit>0</unit>
428 <type>2d</type>
429 <image><use>texture[0]/image</use></image>
430 <wrap-s>clamp</wrap-s>
431 <wrap-t>clamp</wrap-t>
432 </texture-unit>
433 <program>
434 <vertex-shader>Shaders/3dcloud.vert</vertex-shader>
435 <fragment-shader>Shaders/3dcloud.frag</fragment-shader>
436 <attribute>
437 <name>usrAttr1</name>
438 <index>10</index>
439 </attribute>
440 <attribute>
441 <name>usrAttr2</name>
442 <index>11</index>
443 </attribute>
444 </program>
445 <uniform>
446 <name>baseTexture</name>
447 <type>sampler-2d</type>
448 <value type="int">0</value>
449 </uniform>
450 <uniform>
451 <name>range</name>
452 <type>float</type>
453 <value><use>range</use></value>
454 </uniform>
455 <uniform>
456 <name>detail_range</name>
457 <type>float</type>
458 <value><use>detail</use></value>
459 </uniform>
460 <uniform>
461 <name>scattering</name>
462 <type>float</type>
463 <value><use>scattering</use></value>
464 </uniform>
465 <uniform>
466 <name>terminator</name>
467 <type>float</type>
468 <value><use>terminator</use></value>
469 </uniform>
470 <uniform>
471 <name>altitude</name>
472 <type>float</type>
473 <value><use>altitude</use></value>
474 </uniform>
475 <!--<vertex-program-two-side>true</vertex-program-two-side>-->
476 </pass>
477 </technique>
478 </PropertyList>