Debian Codegraph @

Effects/grass.eff

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <PropertyList>
3 <name>Effects/grass</name>
4 <inherits-from>Effects/airfield</inherits-from>
5
6 <parameters>
7
8 <texture n="20">
9 <image>Textures/Terrain/airport-grass-autumn.png</image>
10 <type>2d</type>
11 <filter>nearest-mipmap-nearest</filter>
12 <mag-filter>nearest</mag-filter>
13 <wrap-s>repeat</wrap-s>
14 <wrap-t>repeat</wrap-t>
15 <internal-format>normalized</internal-format>
16 </texture>
17 <max_grass_height>0.3</max_grass_height>
18 <grass_density>1.0</grass_density>
19 <grass_groups>2</grass_groups>
20 <grass_modulate_by_overlay>0</grass_modulate_by_overlay>
21 <grass_modulate_height_min>0.0</grass_modulate_height_min>
22 <windE><use>/environment/sea/surface/wind-from-east-fps</use></windE>
23 <windN><use>/environment/sea/surface/wind-from-north-fps</use></windN>
24 <wash-x><use>/environment/aircraft-effects/wash-x</use></wash-x>
25 <wash-y><use>/environment/aircraft-effects/wash-y</use></wash-y>
26 <wash-strength><use>/environment/aircraft-effects/wash-strength</use></wash-strength>
27
28 </parameters>
29
30 <technique n="1">
31 <predicate>
32 <and>
33 <property>/sim/rendering/shaders/skydome</property>
34 <less-equal>
35 <value type="float">2.0</value>
36 <float-property>/sim/rendering/shaders/transition</float-property>
37 </less-equal>
38 <less-equal>
39 <value type="float">1.0</value>
40 <float-property>/sim/rendering/shaders/vegetation-effects</float-property>
41 </less-equal>
42 <or>
43 <less-equal>
44 <value type="float">2.0</value>
45 <glversion/>
46 </less-equal>
47 <and>
48 <extension-supported>GL_ARB_shader_objects</extension-supported>
49 <extension-supported>GL_ARB_shading_language_100</extension-supported>
50 <extension-supported>GL_ARB_vertex_shader</extension-supported>
51 <extension-supported>GL_ARB_fragment_shader</extension-supported>
52 </and>
53 </or>
54 <extension-supported>GL_EXT_geometry_shader4</extension-supported>
55 </and>
56 </predicate>
57
58 <pass>
59 <lighting>true</lighting>
60 <material>
61 <ambient><use>material/ambient</use></ambient>
62 <diffuse><use>material/diffuse</use></diffuse>
63 <specular><use>material/specular</use></specular>
64 <emissive><use>material/emissive</use></emissive>
65 <shininess><use>material/shininess</use></shininess>
66 <color-mode>ambient-and-diffuse</color-mode>
67 </material>
68 <alpha-test><use>transparent</use></alpha-test>
69 <shade-model>smooth</shade-model>
70 <cull-face>back</cull-face>
71 <render-bin>
72 <bin-number>-1</bin-number>
73 <bin-name>RenderBin</bin-name>
74 </render-bin>
75 <program>
76 <vertex-shader>Shaders/trivial.vert</vertex-shader>
77 <fragment-shader>Shaders/trivial.frag</fragment-shader>
78 </program>
79 <color-mask type="vec4d">0 0 0 0</color-mask>
80 </pass>
81 <pass>
82 <lighting>true</lighting>
83 <material>
84 <ambient><use>material/ambient</use></ambient>
85 <diffuse><use>material/diffuse</use></diffuse>
86 <specular><use>material/specular</use></specular>
87 <emissive><use>material/emissive</use></emissive>
88 <shininess><use>material/shininess</use></shininess>
89 <color-mode>ambient-and-diffuse</color-mode>
90 </material>
91 <blend><use>transparent</use></blend>
92 <alpha-test><use>transparent</use></alpha-test>
93 <shade-model>smooth</shade-model>
94 <cull-face>back</cull-face>
95 <render-bin>
96 <bin-number><use>render-bin/bin-number</use></bin-number>
97 <bin-name><use>render-bin/bin-name</use></bin-name>
98 </render-bin>
99 <texture-unit>
100 <unit>0</unit>
101 <image><use>texture[13]/image</use></image>
102 <type><use>texture[13]/type</use></type>
103 <filter><use>texture[13]/filter</use></filter>
104 <wrap-s><use>texture[13]/wrap-s</use></wrap-s>
105 <wrap-t><use>texture[13]/wrap-t</use></wrap-t>
106 <internal-format>
107 <use>texture[13]/internal-format</use>
108 </internal-format>
109 </texture-unit>
110 <texture-unit>
111 <unit>1</unit>
112 <image><use>texture[14]/image</use></image>
113 <type><use>texture[14]/type</use></type>
114 <filter><use>texture[14]/filter</use></filter>
115 <wrap-s><use>texture[14]/wrap-s</use></wrap-s>
116 <wrap-t><use>texture[14]/wrap-t</use></wrap-t>
117 <internal-format>
118 <use>texture[14]/internal-format</use>
119 </internal-format>
120 </texture-unit>
121 <texture-unit>
122 <unit>2</unit>
123 <image><use>texture[15]/image</use></image>
124 <type><use>texture[15]/type</use></type>
125 <filter><use>texture[15]/filter</use></filter>
126 <wrap-s><use>texture[15]/wrap-s</use></wrap-s>
127 <wrap-t><use>texture[15]/wrap-t</use></wrap-t>
128 <internal-format>
129 <use>texture[15]/internal-format</use>
130 </internal-format>
131 </texture-unit>
132 <program>
133 <vertex-shader>Shaders/terrain-ALS-ultra.vert</vertex-shader>
134 <vertex-shader>Shaders/filters-ALS.vert</vertex-shader>
135 <vertex-shader>Shaders/shadows-include.vert</vertex-shader>
136 <fragment-shader>Shaders/airfield-ALS.frag</fragment-shader>
137 <fragment-shader>Shaders/cloud-shadowfunc.frag</fragment-shader>
138 <fragment-shader>Shaders/noise.frag</fragment-shader>
139 <fragment-shader>Shaders/hazes.frag</fragment-shader>
140 <fragment-shader>Shaders/secondary_lights.frag</fragment-shader>
141 <fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
142 <fragment-shader>Shaders/shadows-include.frag</fragment-shader>
143 <fragment-shader>Shaders/clustered-include.frag</fragment-shader>
144 </program>
145 <uniform>
146 <name>visibility</name>
147 <type>float</type>
148 <value><use>visibility</use></value>
149 </uniform>
150 <uniform>
151 <name>avisibility</name>
152 <type>float</type>
153 <value><use>avisibility</use></value>
154 </uniform>
155 <uniform>
156 <name>hazeLayerAltitude</name>
157 <type>float</type>
158 <value><use>lthickness</use></value>
159 </uniform>
160 <uniform>
161 <name>scattering</name>
162 <type>float</type>
163 <value><use>scattering</use></value>
164 </uniform>
165 <uniform>
166 <name>ground_scattering</name>
167 <type>float</type>
168 <value><use>ground_scattering</use></value>
169 </uniform>
170 <uniform>
171 <name>terminator</name>
172 <type>float</type>
173 <value><use>terminator</use></value>
174 </uniform>
175 <uniform>
176 <name>terrain_alt</name>
177 <type>float</type>
178 <value><use>terrain_alt</use></value>
179 </uniform>
180 <uniform>
181 <name>overcast</name>
182 <type>float</type>
183 <value><use>overcast</use></value>
184 </uniform>
185 <uniform>
186 <name>eye_alt</name>
187 <type>float</type>
188 <value><use>eye_alt</use></value>
189 </uniform>
190 <uniform>
191 <name>snowlevel</name>
192 <type>float</type>
193 <value><use>snow_level</use></value>
194 </uniform>
195 <uniform>
196 <name>snow_thickness_factor</name>
197 <type>float</type>
198 <value><use>snow_thickness_factor</use></value>
199 </uniform>
200 <uniform>
201 <name>dust_cover_factor</name>
202 <type>float</type>
203 <value> <use>dust_cover_factor</use></value>
204 </uniform>
205 <uniform>
206 <name>wetness</name>
207 <type>float</type>
208 <value> <use>wetness</use></value>
209 </uniform>
210 <uniform>
211 <name>fogstructure</name>
212 <type>float</type>
213 <value> <use>fogstructure</use></value>
214 </uniform>
215 <uniform>
216 <name>grit_alpha</name>
217 <type>float</type>
218 <value><use>grit_alpha</use></value>
219 </uniform>
220 <uniform>
221 <name>overlay_bias</name>
222 <type>float</type>
223 <value><use>overlay_bias</use></value>
224 </uniform>
225 <uniform>
226 <name>overlay_alpha</name>
227 <type>float</type>
228 <value><use>overlay_alpha</use></value>
229 </uniform>
230 <uniform>
231 <name>base_layer_magnification</name>
232 <type>float</type>
233 <value><use>base_layer_magnification</use></value>
234 </uniform>
235 <uniform>
236 <name>overlay_layer_magnification</name>
237 <type>float</type>
238 <value><use>overlay_layer_magnification</use></value>
239 </uniform>
240 <uniform>
241 <name>grain_layer_magnification</name>
242 <type>float</type>
243 <value><use>grain_layer_magnification</use></value>
244 </uniform>
245 <uniform>
246 <name>cloud_self_shading</name>
247 <type>float</type>
248 <value><use>cloud_self_shading</use></value>
249 </uniform>
250 <uniform>
251 <name>moonlight</name>
252 <type>float</type>
253 <value><use>moonlight</use></value>
254 </uniform>
255 <uniform>
256 <name>air_pollution</name>
257 <type>float</type>
258 <value><use>air_pollution</use></value>
259 </uniform>
260 <uniform>
261 <name>season</name>
262 <type>float</type>
263 <value><use>season</use></value>
264 </uniform>
265 <!-- secondary lights -->
266 <uniform>
267 <name>view_pitch_offset</name>
268 <type>float</type>
269 <value><use>view_pitch_offset</use></value>
270 </uniform>
271 <uniform>
272 <name>view_heading_offset</name>
273 <type>float</type>
274 <value><use>view_heading_offset</use></value>
275 </uniform>
276 <uniform>
277 <name>field_of_view</name>
278 <type>float</type>
279 <value><use>view_fov</use></value>
280 </uniform>
281 <uniform>
282 <name>landing_light1_offset</name>
283 <type>float</type>
284 <value><use>landing_light1_offset</use></value>
285 </uniform>
286 <uniform>
287 <name>landing_light2_offset</name>
288 <type>float</type>
289 <value><use>landing_light2_offset</use></value>
290 </uniform>
291 <uniform>
292 <name>landing_light3_offset</name>
293 <type>float</type>
294 <value><use>landing_light3_offset</use></value>
295 </uniform>
296 <!-- filtering -->
297 <uniform>
298 <name>gamma</name>
299 <type>float</type>
300 <value><use>gamma</use></value>
301 </uniform>
302 <uniform>
303 <name>brightness</name>
304 <type>float</type>
305 <value><use>brightness</use></value>
306 </uniform>
307 <uniform>
308 <name>use_night_vision</name>
309 <type>bool</type>
310 <value><use>use_night_vision</use></value>
311 </uniform>
312 <uniform>
313 <name>use_IR_vision</name>
314 <type>bool</type>
315 <value><use>use_IR_vision</use></value>
316 </uniform>
317 <uniform>
318 <name>use_filtering</name>
319 <type>bool</type>
320 <value><use>use_filtering</use></value>
321 </uniform>
322 <uniform>
323 <name>delta_T</name>
324 <type>float</type>
325 <value><use>delta_T</use></value>
326 </uniform>
327 <uniform>
328 <name>fact_grey</name>
329 <type>float</type>
330 <value><use>fact_grey</use></value>
331 </uniform>
332 <uniform>
333 <name>fact_black</name>
334 <type>float</type>
335 <value><use>fact_black</use></value>
336 </uniform>
337 <!-- cloud shadows -->
338 <uniform>
339 <name>cloudpos1_x</name>
340 <type>float</type>
341 <value><use>cloudpos1_x</use></value>
342 </uniform>
343 <uniform>
344 <name>cloudpos1_y</name>
345 <type>float</type>
346 <value><use>cloudpos1_y</use></value>
347 </uniform>
348 <uniform>
349 <name>cloudpos2_x</name>
350 <type>float</type>
351 <value><use>cloudpos2_x</use></value>
352 </uniform>
353 <uniform>
354 <name>cloudpos2_y</name>
355 <type>float</type>
356 <value><use>cloudpos2_y</use></value>
357 </uniform>
358 <uniform>
359 <name>cloudpos3_x</name>
360 <type>float</type>
361 <value><use>cloudpos3_x</use></value>
362 </uniform>
363 <uniform>
364 <name>cloudpos3_y</name>
365 <type>float</type>
366 <value><use>cloudpos3_y</use></value>
367 </uniform>
368 <uniform>
369 <name>cloudpos4_x</name>
370 <type>float</type>
371 <value><use>cloudpos4_x</use></value>
372 </uniform>
373 <uniform>
374 <name>cloudpos4_y</name>
375 <type>float</type>
376 <value><use>cloudpos4_y</use></value>
377 </uniform>
378 <uniform>
379 <name>cloudpos5_x</name>
380 <type>float</type>
381 <value><use>cloudpos5_x</use></value>
382 </uniform>
383 <uniform>
384 <name>cloudpos5_y</name>
385 <type>float</type>
386 <value><use>cloudpos5_y</use></value>
387 </uniform>
388 <uniform>
389 <name>cloudpos6_x</name>
390 <type>float</type>
391 <value><use>cloudpos6_x</use></value>
392 </uniform>
393 <uniform>
394 <name>cloudpos6_y</name>
395 <type>float</type>
396 <value><use>cloudpos6_y</use></value>
397 </uniform>
398 <uniform>
399 <name>cloudpos7_x</name>
400 <type>float</type>
401 <value><use>cloudpos7_x</use></value>
402 </uniform>
403 <uniform>
404 <name>cloudpos7_y</name>
405 <type>float</type>
406 <value><use>cloudpos7_y</use></value>
407 </uniform>
408 <uniform>
409 <name>cloudpos8_x</name>
410 <type>float</type>
411 <value><use>cloudpos8_x</use></value>
412 </uniform>
413 <uniform>
414 <name>cloudpos8_y</name>
415 <type>float</type>
416 <value><use>cloudpos8_y</use></value>
417 </uniform>
418 <uniform>
419 <name>cloudpos9_x</name>
420 <type>float</type>
421 <value><use>cloudpos9_x</use></value>
422 </uniform>
423 <uniform>
424 <name>cloudpos9_y</name>
425 <type>float</type>
426 <value><use>cloudpos9_y</use></value>
427 </uniform>
428 <uniform>
429 <name>cloudpos10_x</name>
430 <type>float</type>
431 <value><use>cloudpos10_x</use></value>
432 </uniform>
433 <uniform>
434 <name>cloudpos10_y</name>
435 <type>float</type>
436 <value><use>cloudpos10_y</use></value>
437 </uniform>
438 <uniform>
439 <name>cloudpos11_x</name>
440 <type>float</type>
441 <value><use>cloudpos11_x</use></value>
442 </uniform>
443 <uniform>
444 <name>cloudpos11_y</name>
445 <type>float</type>
446 <value><use>cloudpos11_y</use></value>
447 </uniform>
448 <uniform>
449 <name>cloudpos12_x</name>
450 <type>float</type>
451 <value><use>cloudpos12_x</use></value>
452 </uniform>
453 <uniform>
454 <name>cloudpos12_y</name>
455 <type>float</type>
456 <value><use>cloudpos12_y</use></value>
457 </uniform>
458 <uniform>
459 <name>cloudpos13_x</name>
460 <type>float</type>
461 <value><use>cloudpos13_x</use></value>
462 </uniform>
463 <uniform>
464 <name>cloudpos13_y</name>
465 <type>float</type>
466 <value><use>cloudpos13_y</use></value>
467 </uniform>
468 <uniform>
469 <name>cloudpos14_x</name>
470 <type>float</type>
471 <value><use>cloudpos14_x</use></value>
472 </uniform>
473 <uniform>
474 <name>cloudpos14_y</name>
475 <type>float</type>
476 <value><use>cloudpos14_y</use></value>
477 </uniform>
478 <uniform>
479 <name>cloudpos15_x</name>
480 <type>float</type>
481 <value><use>cloudpos15_x</use></value>
482 </uniform>
483 <uniform>
484 <name>cloudpos15_y</name>
485 <type>float</type>
486 <value><use>cloudpos15_y</use></value>
487 </uniform>
488 <uniform>
489 <name>cloudpos16_x</name>
490 <type>float</type>
491 <value><use>cloudpos16_x</use></value>
492 </uniform>
493 <uniform>
494 <name>cloudpos16_y</name>
495 <type>float</type>
496 <value><use>cloudpos16_y</use></value>
497 </uniform>
498 <uniform>
499 <name>cloudpos17_x</name>
500 <type>float</type>
501 <value><use>cloudpos17_x</use></value>
502 </uniform>
503 <uniform>
504 <name>cloudpos17_y</name>
505 <type>float</type>
506 <value><use>cloudpos17_y</use></value>
507 </uniform>
508 <uniform>
509 <name>cloudpos18_x</name>
510 <type>float</type>
511 <value><use>cloudpos18_x</use></value>
512 </uniform>
513 <uniform>
514 <name>cloudpos18_y</name>
515 <type>float</type>
516 <value><use>cloudpos18_y</use></value>
517 </uniform>
518 <uniform>
519 <name>cloudpos19_x</name>
520 <type>float</type>
521 <value><use>cloudpos19_x</use></value>
522 </uniform>
523 <uniform>
524 <name>cloudpos19_y</name>
525 <type>float</type>
526 <value><use>cloudpos19_y</use></value>
527 </uniform>
528 <uniform>
529 <name>cloudpos20_x</name>
530 <type>float</type>
531 <value><use>cloudpos20_x</use></value>
532 </uniform>
533 <uniform>
534 <name>cloudpos20_y</name>
535 <type>float</type>
536 <value><use>cloudpos20_y</use></value>
537 </uniform>
538 <uniform>
539 <name>cloud_shadow_flag</name>
540 <type>int</type>
541 <value><use>cloud_shadow_flag</use></value>
542 </uniform>
543 <uniform>
544 <name>quality_level</name>
545 <type>int</type>
546 <value> <use>quality_level</use></value>
547 </uniform>
548 <uniform>
549 <name>tquality_level</name>
550 <type>int</type>
551 <value> <use>tquality_level</use></value>
552 </uniform>
553 <uniform>
554 <name>use_overlay</name>
555 <type>int</type>
556 <value> <use>use_overlay</use></value>
557 </uniform>
558 <uniform>
559 <name>use_grain</name>
560 <type>int</type>
561 <value> <use>use_grain</use></value>
562 </uniform>
563 <uniform>
564 <name>use_color_overlay</name>
565 <type>int</type>
566 <value> <use>use_color_overlay</use></value>
567 </uniform>
568 <uniform>
569 <name>use_searchlight</name>
570 <type>int</type>
571 <value> <use>use_searchlight</use></value>
572 </uniform>
573 <uniform>
574 <name>use_landing_light</name>
575 <type>int</type>
576 <value> <use>use_landing_light</use></value>
577 </uniform>
578 <uniform>
579 <name>use_alt_landing_light</name>
580 <type>int</type>
581 <value> <use>use_alt_landing_light</use></value>
582 </uniform>
583 <uniform>
584 <name>display_xsize</name>
585 <type>int</type>
586 <value><use>display_xsize</use></value>
587 </uniform>
588 <uniform>
589 <name>display_ysize</name>
590 <type>int</type>
591 <value><use>display_ysize</use></value>
592 </uniform>
593 <uniform>
594 <name>raise_vertex</name>
595 <type>bool</type>
596 <value> <use>raise_vertex</use></value>
597 </uniform>
598 <uniform>
599 <name>texture</name>
600 <type>sampler-2d</type>
601 <value type="int">0</value>
602 </uniform>
603 <uniform>
604 <name>overlay_texture</name>
605 <type>sampler-2d</type>
606 <value type="int">1</value>
607 </uniform>
608 <uniform>
609 <name>grain_texture</name>
610 <type>sampler-2d</type>
611 <value type="int">2</value>
612 </uniform>
613 <uniform>
614 <name>colorMode</name>
615 <type>int</type>
616 <value>2</value> <!-- AMBIENT_AND_DIFFUSE -->
617 </uniform>
618 <uniform>
619 <name>orthophotoTexture</name>
620 <type>sampler-2d</type>
621 <value type="int">15</value>
622 </uniform>
623 <!-- BEGIN shadows include -->
624 <uniform>
625 <name>shadow_tex</name>
626 <type>sampler-2d</type>
627 <value type="int">10</value>
628 </uniform>
629 <uniform>
630 <name>shadows_enabled</name>
631 <type>bool</type>
632 <value>
633 <use>shadows_enabled</use>
634 </value>
635 </uniform>
636 <uniform>
637 <name>sun_atlas_size</name>
638 <type>int</type>
639 <value>
640 <use>sun_atlas_size</use>
641 </value>
642 </uniform>
643 <!-- END shadows include -->
644 <depth>
645 <function>lequal</function>
646 <write-mask type="bool">false</write-mask>
647 </depth>
648 </pass>
649
650 <pass n="2">
651 <lighting>true</lighting>
652 <material>
653 <ambient><use>material/ambient</use></ambient>
654 <diffuse><use>material/diffuse</use></diffuse>
655 <specular><use>material/specular</use></specular>
656 <emissive><use>material/emissive</use></emissive>
657 <shininess><use>material/shininess</use></shininess>
658 <color-mode>ambient-and-diffuse</color-mode>
659 </material>
660 <alpha-test><use>transparent</use></alpha-test>
661 <shade-model>smooth</shade-model>
662 <cull-face>back</cull-face>
663 <!--<render-bin>
664 <bin-number>10</bin-number>
665 <bin-name>GrassBin</bin-name>
666 </render-bin>-->
667 <!--<render-bin>
668 <bin-number>111</bin-number>
669 <bin-name>DepthSortedBin</bin-name>
670 </render-bin>-->
671 <render-bin>
672 <bin-number><use>render-bin/bin-number</use></bin-number>
673 <bin-name><use>render-bin/bin-name</use></bin-name>
674 </render-bin>
675 <texture-unit>
676 <unit>8</unit>
677 <type><use>texture[20]/type</use></type>
678 <image><use>texture[20]/image</use></image>
679 <filter><use>texture[20]/filter</use></filter>
680 <mag-filter><use>texture[20]/mag-filter</use></mag-filter>
681 <wrap-s><use>texture[20]/wrap-s</use></wrap-s>
682 <wrap-t><use>texture[20]/wrap-t</use></wrap-t>
683 <internal-format><use>texture[20]/internal-format</use></internal-format>
684 </texture-unit>
685 <program>
686 <vertex-shader n="0">Shaders/grass-ALS.vert</vertex-shader>
687 <geometry-shader>Shaders/grass-ALS.geom</geometry-shader>
688 <fragment-shader n="0">Shaders/grass-ALS.frag</fragment-shader>
689 <fragment-shader n="1">Shaders/noise.frag</fragment-shader>
690 <fragment-shader n="2">Shaders/filters-ALS.frag</fragment-shader>
691 <fragment-shader n="3">Shaders/shadows-include.frag</fragment-shader>
692 <geometry-vertices-out type="int">96</geometry-vertices-out>
693 <geometry-input-type>triangles</geometry-input-type>
694 <geometry-output-type>triangle-strip</geometry-output-type>
695 </program>
696 <uniform>
697 <name>colorTex</name>
698 <type>sampler-2d</type>
699 <value type="int">8</value>
700 </uniform>
701 <uniform>
702 <name>visibility</name>
703 <type>float</type>
704 <value><use>visibility</use></value>
705 </uniform>
706 <uniform>
707 <name>scattering</name>
708 <type>float</type>
709 <value><use>scattering</use></value>
710 </uniform>
711 <uniform>
712 <name>wind_x</name>
713 <type>float</type>
714 <value>
715 <use>windE</use>
716 </value>
717 </uniform>
718 <uniform>
719 <name>wind_y</name>
720 <type>float</type>
721 <value>
722 <use>windN</use>
723 </value>
724 </uniform>
725 <uniform>
726 <name>wash_x</name>
727 <type>float</type>
728 <value>
729 <use>wash-x</use>
730 </value>
731 </uniform>
732 <uniform>
733 <name>wash_y</name>
734 <type>float</type>
735 <value>
736 <use>wash-y</use>
737 </value>
738 </uniform>
739 <uniform>
740 <name>wash_strength</name>
741 <type>float</type>
742 <value>
743 <use>wash-strength</use>
744 </value>
745 </uniform>
746 <uniform>
747 <name>overlay_bias</name>
748 <type>float</type>
749 <value><use>overlay_bias</use></value>
750 </uniform>
751 <uniform>
752 <name>max_height</name>
753 <type>float</type>
754 <value><use>max_grass_height</use></value>
755 </uniform>
756 <uniform>
757 <name>grass_density</name>
758 <type>float</type>
759 <value><use>grass_density</use></value>
760 </uniform>
761 <uniform>
762 <name>grass_modulate_height_min</name>
763 <type>float</type>
764 <value><use>grass_modulate_height_min</use></value>
765 </uniform>
766 <uniform>
767 <name>season</name>
768 <type>float</type>
769 <value><use>season</use></value>
770 </uniform>
771
772 <uniform>
773 <name>grass_modulate_by_overlay</name>
774 <type>int</type>
775 <value><use>grass_modulate_by_overlay</use></value>
776 </uniform>
777 <uniform>
778 <name>grass_groups</name>
779 <type>int</type>
780 <value><use>grass_groups</use></value>
781 </uniform>
782
783
784 <!-- filtering -->
785 <uniform>
786 <name>gamma</name>
787 <type>float</type>
788 <value><use>gamma</use></value>
789 </uniform>
790 <uniform>
791 <name>brightness</name>
792 <type>float</type>
793 <value><use>brightness</use></value>
794 </uniform>
795 <uniform>
796 <name>use_night_vision</name>
797 <type>bool</type>
798 <value><use>use_night_vision</use></value>
799 </uniform>
800 <uniform>
801 <name>use_IR_vision</name>
802 <type>bool</type>
803 <value><use>use_IR_vision</use></value>
804 </uniform>
805 <uniform>
806 <name>use_filtering</name>
807 <type>bool</type>
808 <value><use>use_filtering</use></value>
809 </uniform>
810 <uniform>
811 <name>delta_T</name>
812 <type>float</type>
813 <value><use>delta_T</use></value>
814 </uniform>
815 <uniform>
816 <name>fact_grey</name>
817 <type>float</type>
818 <value><use>fact_grey</use></value>
819 </uniform>
820 <uniform>
821 <name>fact_black</name>
822 <type>float</type>
823 <value><use>fact_black</use></value>
824 </uniform>
825
826 <uniform>
827 <name>display_xsize</name>
828 <type>int</type>
829 <value><use>display_xsize</use></value>
830 </uniform>
831 <uniform>
832 <name>display_ysize</name>
833 <type>int</type>
834 <value><use>display_ysize</use></value>
835 </uniform>
836 <uniform>
837 <name>wind_effects</name>
838 <type>int</type>
839 <value><use>wind_effects</use></value>
840 </uniform>
841 <!-- BEGIN shadows include -->
842 <uniform>
843 <name>shadow_tex</name>
844 <type>sampler-2d</type>
845 <value type="int">10</value>
846 </uniform>
847 <uniform>
848 <name>shadows_enabled</name>
849 <type>bool</type>
850 <value>
851 <use>shadows_enabled</use>
852 </value>
853 </uniform>
854 <uniform>
855 <name>sun_atlas_size</name>
856 <type>int</type>
857 <value>
858 <use>sun_atlas_size</use>
859 </value>
860 </uniform>
861 <!-- END shadows include -->
862
863 <blend>
864 <active>true</active>
865 <source>src-alpha</source>
866 <destination>one-minus-src-alpha</destination>
867 </blend>
868
869 <depth>
870 <write-mask>false</write-mask>
871 </depth>
872 </pass>
873 </technique>
874 </PropertyList>