Quality slider overwrites custom shader settings. All effects now listen to the new...
[fg:toms-fgdata.git] / Effects / water.eff
1 <?xml version="1.0" encoding="utf-8"?>
2 <PropertyList>
3         <name>Effects/water</name>
4         <inherits-from>Effects/terrain-default</inherits-from>
5         <parameters>
6                 <texture n="0">
7                         <image>Textures/Water/water-reflection.png</image>
8                         <filter>linear-mipmap-linear</filter>
9                         <wrap-s>repeat</wrap-s>
10                         <wrap-t>repeat</wrap-t>
11                         <internal-format>normalized</internal-format>
12                 </texture>
13                 <texture n="2">
14                         <!--<image>Textures/Water/water-normalmap.png</image>-->
15                         <!--<image>Textures/Water/water-normalmap2.dds</image>-->
16                                 <!--<image>Textures/Water/water_sine_nmap.dds</image>-->
17                         <image>Textures/Water/waves-ver10-nm.dds</image>
18                         <filter>linear-mipmap-linear</filter>
19                         <wrap-s>repeat</wrap-s>
20                         <wrap-t>repeat</wrap-t>
21                         <internal-format>normalized</internal-format>
22                 </texture>
23                 <texture n="3">
24                         <!--<image>Textures/Water/water-dudv.png</image>-->
25                         <!--<image>Textures/Water/dudvmap2.png</image>-->
26                         <!--<image>Textures/Water/waves-ver10-dudv.dds</image>-->
27                         <!--<image>Textures/Water/water-reflection-grey.png</image>-->
28                                 <image>Textures/Water/water_sine_nmap.dds</image>
29                         <filter>linear-mipmap-linear</filter>
30                         <wrap-s>repeat</wrap-s>
31                         <wrap-t>repeat</wrap-t>
32                         <internal-format>normalized</internal-format>
33                 </texture>
34                 <texture n="4">
35                         <image>Textures/Water/water-reflection-grey.png</image>
36                         <filter>linear-mipmap-linear</filter>
37                         <wrap-s>repeat</wrap-s>
38                         <wrap-t>repeat</wrap-t>
39                         <internal-format>normalized</internal-format>
40                 </texture>
41                 <texture n="5">
42                         <image>Textures/Water/sea_foam.dds</image>
43                         <filter>linear-mipmap-linear</filter>
44                         <wrap-s>repeat</wrap-s>
45                         <wrap-t>repeat</wrap-t>
46                         <internal-format>normalized</internal-format>
47                 </texture>
48                 <texture n="6">
49                         <image>Textures/Water/perlin-noise-nm.dds</image>
50 <!--                    <image>Textures/Water/water_sine_nmap.dds</image> -->
51                         <filter>linear-mipmap-linear</filter>
52                         <wrap-s>repeat</wrap-s>
53                         <wrap-t>repeat</wrap-t>
54                         <internal-format>normalized</internal-format>
55                 </texture>
56                 <saturation>
57                         <use>/rendering/scene/saturation</use>
58                 </saturation>
59                 <status>
60                         <use>/environment/config/enabled</use>
61                 </status>
62                 <overcast>
63                         <use>/rendering/scene/overcast</use>
64                 </overcast>
65                 <cloud-cover n="0">
66                         <use>/environment/clouds/layer[0]/coverage-type</use>
67                 </cloud-cover>
68                 <cloud-cover n="1">
69                         <use>/environment/clouds/layer[1]/coverage-type</use>
70                 </cloud-cover>
71                 <cloud-cover n="2" >
72                         <use>/environment/clouds/layer[2]/coverage-type</use>
73                 </cloud-cover>
74                 <cloud-cover n="3">
75                         <use>/environment/clouds/layer[3]/coverage-type</use>
76                 </cloud-cover>
77                 <cloud-cover n="4">
78                         <use>/environment/clouds/layer[4]/coverage-type</use>
79                 </cloud-cover>
80                 <!--<wind>
81                         <use>/environment/wind-speed-kt</use>
82                 </wind>-->
83                 <windE>
84                         <use>/environment/sea/surface/wind-from-east-fps</use>
85                 </windE>
86                 <windN>
87                         <use>/environment/sea/surface/wind-from-north-fps</use>
88                 </windN>
89                 <wind-from>
90                         <use>/environment/config/boundary/entry[0]/wind-from-heading-deg</use>
91                 </wind-from>
92                 <WaveFreq>
93                         <use>/environment/wave/freq</use>
94                 </WaveFreq>
95                 <WaveAmp>
96                         <use>/environment/wave/amp</use>
97                 </WaveAmp>
98                 <WaveSharp>
99                         <use>/environment/wave/sharp</use>
100                 </WaveSharp>
101                 <WaveAngle>
102                         <use>/environment/wave/angle</use>
103                 </WaveAngle>
104                 <WaveFactor>
105                         <use>/environment/wave/factor</use>
106                 </WaveFactor>
107                 <WaveDAngle>
108                         <use>/environment/wave/dangle</use>
109                 </WaveDAngle>
110
111                 <!--    fog include -->
112                 <visibility>
113                         <use>/environment/ground-visibility-m</use>
114                 </visibility>
115                 <avisibility>
116                         <use>/environment/visibility-m</use>
117                 </avisibility>
118                 <lthickness>
119                         <use>/environment/ground-haze-thickness-m</use>
120                 </lthickness>
121                 <scattering>
122                         <use>/rendering/scene/scattering</use>
123                 </scattering>
124                 <terminator>
125                         <use>/environment/terminator-relative-position-m</use>
126                 </terminator>
127                 <fogtype>
128                         <use>/sim/rendering/shaders/skydome</use>
129                 </fogtype>
130                 <!--    END fog include -->
131         </parameters>
132         <technique n="8">
133                 <predicate>
134                         <and>
135                                 <property>/sim/rendering/shaders/water</property>
136                                 <less-equal>
137                                         <value type="float">4.0</value>
138                                         <float-property>/sim/rendering/shaders/water</float-property>
139                                 </less-equal>
140                                 <or>
141                                         <less-equal>
142                                                 <value type="float">2.0</value>
143                                                 <glversion/>
144                                         </less-equal>
145                                         <and>
146                                                 <extension-supported>GL_ARB_shader_objects</extension-supported>
147                                                 <extension-supported>GL_ARB_shading_language_100</extension-supported>
148                                                 <extension-supported>GL_ARB_vertex_shader</extension-supported>
149                                                 <extension-supported>GL_ARB_fragment_shader</extension-supported>
150                                         </and>
151                                 </or>
152                         </and>
153                 </predicate>
154                 <pass>
155                         <lighting>true</lighting>
156                         <material>
157                                 <ambient>
158                                         <use>material/ambient</use>
159                                 </ambient>
160                                 <diffuse>
161                                         <use>material/diffuse</use>
162                                 </diffuse>
163                                 <specular>
164                                         <use>material/specular</use>
165                                 </specular>
166                                 <color-mode>ambient-and-diffuse</color-mode>
167                         </material>
168                         <blend>
169                                 <use>transparent</use>
170                         </blend>
171                         <alpha-test>
172                                 <use>transparent</use>
173                         </alpha-test>
174                         <shade-model>smooth</shade-model>
175                         <cull-face>back</cull-face>
176                         <render-bin>
177                                 <bin-number>
178                                         <use>render-bin/bin-number</use>
179                                 </bin-number>
180                                 <bin-name>
181                                         <use>render-bin/bin-name</use>
182                                 </bin-name>
183                         </render-bin>
184                         <texture-unit>
185                                 <unit>0</unit>
186                                 <image>
187                                         <use>texture[0]/image</use>
188                                 </image>
189                                 <filter>
190                                         <use>texture[0]/filter</use>
191                                 </filter>
192                                 <wrap-s>
193                                         <use>texture[0]/wrap-s</use>
194                                 </wrap-s>
195                                 <wrap-t>
196                                         <use>texture[0]/wrap-t</use>
197                                 </wrap-t>
198                                 <internal-format>
199                                         <use>texture[0]/internal-format</use>
200                                 </internal-format>
201                         </texture-unit>
202                         <texture-unit>
203                                 <unit>2</unit>
204                                 <image>
205                                         <use>texture[2]/image</use>
206                                 </image>
207                                 <filter>
208                                         <use>texture[2]/filter</use>
209                                 </filter>
210                                 <wrap-s>
211                                         <use>texture[2]/wrap-s</use>
212                                 </wrap-s>
213                                 <wrap-t>
214                                         <use>texture[2]/wrap-t</use>
215                                 </wrap-t>
216                                 <internal-format>
217                                         <use>texture[2]/internal-format</use>
218                                 </internal-format>
219                         </texture-unit>
220                         <texture-unit>
221                                 <unit>3</unit>
222                                 <image>
223                                         <use>texture[3]/image</use>
224                                 </image>
225                                 <filter>
226                                         <use>texture[3]/filter</use>
227                                 </filter>
228                                 <wrap-s>
229                                         <use>texture[3]/wrap-s</use>
230                                 </wrap-s>
231                                 <wrap-t>
232                                         <use>texture[3]/wrap-t</use>
233                                 </wrap-t>
234                                 <internal-format>
235                                         <use>texture[3]/internal-format</use>
236                                 </internal-format>
237                         </texture-unit>
238                         <texture-unit>
239                                 <unit>4</unit>
240                                 <image>
241                                         <use>texture[4]/image</use>
242                                 </image>
243                                 <filter>
244                                         <use>texture[4]/filter</use>
245                                 </filter>
246                                 <wrap-s>
247                                         <use>texture[4]/wrap-s</use>
248                                 </wrap-s>
249                                 <wrap-t>
250                                         <use>texture[4]/wrap-t</use>
251                                 </wrap-t>
252                                 <internal-format>
253                                         <use>texture[4]/internal-format</use>
254                                 </internal-format>
255                         </texture-unit>
256                         <texture-unit>
257                                 <unit>5</unit>
258                                 <image>
259                                         <use>texture[5]/image</use>
260                                 </image>
261                                 <filter>
262                                         <use>texture[5]/filter</use>
263                                 </filter>
264                                 <wrap-s>
265                                         <use>texture[5]/wrap-s</use>
266                                 </wrap-s>
267                                 <wrap-t>
268                                         <use>texture[5]/wrap-t</use>
269                                 </wrap-t>
270                                 <internal-format>
271                                         <use>texture[5]/internal-format</use>
272                                 </internal-format>
273                         </texture-unit>
274                         <texture-unit>
275                                 <unit>6</unit>
276                                 <image>
277                                         <use>texture[6]/image</use>
278                                 </image>
279                                 <filter>
280                                         <use>texture[6]/filter</use>
281                                 </filter>
282                                 <wrap-s>
283                                         <use>texture[6]/wrap-s</use>
284                                 </wrap-s>
285                                 <wrap-t>
286                                         <use>texture[6]/wrap-t</use>
287                                 </wrap-t>
288                                 <internal-format>
289                                         <use>texture[6]/internal-format</use>
290                                 </internal-format>
291                         </texture-unit>
292                         <texture-unit>
293                                 <unit>9</unit>
294                                 <type>noise</type>
295                         </texture-unit>
296                         <program>
297                                 <vertex-shader>Shaders/include_fog.vert</vertex-shader>
298                                 <vertex-shader>Shaders/water.vert</vertex-shader>
299                                 <fragment-shader>Shaders/include_fog.frag</fragment-shader>
300                                 <fragment-shader>Shaders/water_sine.frag</fragment-shader>
301                         </program>
302                         <uniform>
303                                 <name>water_reflection</name>
304                                 <type>sampler-2d</type>
305                                 <value type="int">0</value>
306                         </uniform>
307                         <uniform>
308                                 <name>water_normalmap</name>
309                                 <type>sampler-2d</type>
310                                 <value type="int">2</value>
311                         </uniform>
312                         <uniform>
313                                 <name>water_dudvmap</name>
314                                 <type>sampler-2d</type>
315                                 <value type="int">3</value>
316                         </uniform>
317                         <uniform>
318                                 <name>water_reflection_grey</name>
319                                 <type>sampler-2d</type>
320                                 <value type="int">4</value>
321                         </uniform>
322                         <uniform>
323                                 <name>sea_foam</name>
324                                 <type>sampler-2d</type>
325                                 <value type="int">5</value>
326                         </uniform>
327                         <uniform>
328                                 <name>perlin_normalmap</name>
329                                 <type>sampler-2d</type>
330                                 <value type="int">6</value>
331                         </uniform>
332                         <uniform>
333                                 <name>saturation</name>
334                                 <type>float</type>
335                                 <!--<value>0.4</value>-->
336                                 <value><use>saturation</use></value>
337                         </uniform>
338                         <uniform>
339                                 <name>CloudCover0</name>
340                                 <type>float</type>
341                                 <value>
342                                         <use>cloud-cover[0]</use>
343                                 </value>
344                         </uniform>
345                         <uniform>
346                                 <name>CloudCover1</name>
347                                 <type>float</type>
348                                 <value>
349                                         <use>cloud-cover[1]</use>
350                                 </value>
351                         </uniform>
352                         <uniform>
353                                 <name>CloudCover2</name>
354                                 <type>float</type>
355                                 <value>
356                                         <use>cloud-cover[2]</use>
357                                 </value>
358                         </uniform>
359                         <uniform>
360                                 <name>CloudCover3</name>
361                                 <type>float</type>
362                                 <value>
363                                         <use>cloud-cover[3]</use>
364                                 </value>
365                         </uniform>
366                         <uniform>
367                                 <name>CloudCover4</name>
368                                 <type>float</type>
369                                 <value>
370                                         <use>cloud-cover[4]</use>
371                                 </value>
372                         </uniform>
373                         <uniform>
374                                 <name>Status</name>
375                                 <type>int</type>
376                                 <value>
377                                         <use>status</use>
378                                 </value>
379                                 <!--<value type="int">0</value> -->
380                         </uniform>
381                         <uniform>
382                                 <name>Overcast</name>
383                                 <type>float</type>
384                                 <value>
385                                         <use>overcast</use>
386                                 </value>
387                         </uniform>
388                         <uniform>
389                                 <name>WindE</name>
390                                 <type>float</type>
391                                 <value>
392                                         <use>windE</use>
393                                 </value>
394                         </uniform>
395                         <uniform>
396                                 <name>WindN</name>
397                                 <type>float</type>
398                                 <value>
399                                         <use>windN</use>
400                                 </value>
401                         </uniform>
402                         <uniform>
403                                 <name>WindFrom</name>
404                                 <type>float</type>
405                                 <value>
406                                         <use>wind-from</use>
407                                 </value>
408                         </uniform>
409                         <uniform>
410                                 <name>WaveFreq</name>
411                                 <type>float</type>
412                                 <value>
413                                         <use>WaveFreq</use>
414                                 </value>
415                         </uniform>
416                         <uniform>
417                                 <name>WaveAmp</name>
418                                 <type>float</type>
419                                 <value>
420                                         <use>WaveAmp</use>
421                                 </value>
422                         </uniform>
423                         <uniform>
424                                 <name>WaveSharp</name>
425                                 <type>float</type>
426                                 <value>
427                                         <use>WaveSharp</use>
428                                 </value>
429                         </uniform>
430                         <uniform>
431                                 <name>WaveAngle</name>
432                                 <type>float</type>
433                                 <value>
434                                         <use>WaveAngle</use>
435                                 </value>
436                         </uniform>
437                         <uniform>
438                                 <name>WaveFactor</name>
439                                 <type>float</type>
440                                 <value>
441                                         <use>WaveFactor</use>
442                                 </value>
443                         </uniform>
444                         <uniform>
445                                 <name>WaveDAngle</name>
446                                 <type>float</type>
447                                 <value>
448                                         <use>WaveDAngle</use>
449                                 </value>
450                         </uniform>
451
452                         <uniform>
453                                 <name>Noise</name>
454                                 <type>sampler-3d</type>
455                                 <value type="int">9</value>
456                         </uniform>
457                         
458                         <!--        BEGIN fog include -->
459                         <uniform>
460                                 <name>visibility</name>
461                                 <type>float</type>
462                                 <value>
463                                         <use>visibility</use>
464                                 </value>
465                         </uniform>
466                         <uniform>
467                                 <name>avisibility</name>
468                                 <type>float</type>
469                                 <value>
470                                         <use>avisibility</use>
471                                 </value>
472                         </uniform>
473                         <uniform>
474                                 <name>hazeLayerAltitude</name>
475                                 <type>float</type>
476                                 <value>
477                                         <use>lthickness</use>
478                                 </value>
479                         </uniform>
480                         <uniform>
481                                 <name>scattering</name>
482                                 <type>float</type>
483                                 <value>
484                                         <use>scattering</use>
485                                 </value>
486                         </uniform>
487                         <uniform>
488                                 <name>terminator</name>
489                                 <type>float</type>
490                                 <value>
491                                         <use>terminator</use>
492                                 </value>
493                         </uniform>
494                         <uniform>
495                                 <name>fogType</name>
496                                 <type>int</type>
497                                 <value>
498                                         <use>fogtype</use>
499                                 </value>
500                         </uniform>
501                         <!--                    END fog include -->
502                 </pass>
503         </technique>
504         <technique n="9">
505                 <predicate>
506                         <and>
507                                 <property>/sim/rendering/shaders/water</property>
508                                 <less-equal>
509                                         <value type="float">2.0</value>
510                                         <float-property>/sim/rendering/shaders/water</float-property>
511                                 </less-equal>
512                                 <or>
513                                         <less-equal>
514                                                 <value type="float">2.0</value>
515                                                 <glversion/>
516                                         </less-equal>
517                                         <and>
518                                                 <extension-supported>GL_ARB_shader_objects</extension-supported>
519                                                 <extension-supported>GL_ARB_shading_language_100</extension-supported>
520                                                 <extension-supported>GL_ARB_vertex_shader</extension-supported>
521                                                 <extension-supported>GL_ARB_fragment_shader</extension-supported>
522                                         </and>
523                                 </or>
524                         </and>
525                 </predicate>
526                 <pass>
527                         <lighting>true</lighting>
528                         <material>
529                                 <ambient>
530                                         <use>material/ambient</use>
531                                 </ambient>
532                                 <diffuse>
533                                         <use>material/diffuse</use>
534                                 </diffuse>
535                                 <specular>
536                                         <use>material/specular</use>
537                                 </specular>
538                                 <color-mode>ambient-and-diffuse</color-mode>
539                         </material>
540                         <blend>
541                                 <use>transparent</use>
542                         </blend>
543                         <alpha-test>
544                                 <use>transparent</use>
545                         </alpha-test>
546                         <shade-model>smooth</shade-model>
547                         <cull-face>back</cull-face>
548                         <render-bin>
549                                 <bin-number>
550                                         <use>render-bin/bin-number</use>
551                                 </bin-number>
552                                 <bin-name>
553                                         <use>render-bin/bin-name</use>
554                                 </bin-name>
555                         </render-bin>
556                         <texture-unit>
557                                 <unit>0</unit>
558                                 <image>
559                                         <use>texture[0]/image</use>
560                                 </image>
561                                 <filter>
562                                         <use>texture[0]/filter</use>
563                                 </filter>
564                                 <wrap-s>
565                                         <use>texture[0]/wrap-s</use>
566                                 </wrap-s>
567                                 <wrap-t>
568                                         <use>texture[0]/wrap-t</use>
569                                 </wrap-t>
570                                 <internal-format>
571                                         <use>texture[0]/internal-format</use>
572                                 </internal-format>
573                         </texture-unit>
574                         <texture-unit>
575                                 <unit>2</unit>
576                                 <image>
577                                         <use>texture[2]/image</use>
578                                 </image>
579                                 <filter>
580                                         <use>texture[2]/filter</use>
581                                 </filter>
582                                 <wrap-s>
583                                         <use>texture[2]/wrap-s</use>
584                                 </wrap-s>
585                                 <wrap-t>
586                                         <use>texture[2]/wrap-t</use>
587                                 </wrap-t>
588                                 <internal-format>
589                                         <use>texture[2]/internal-format</use>
590                                 </internal-format>
591                         </texture-unit>
592                         <texture-unit>
593                                 <unit>3</unit>
594                                 <image>
595                                         <use>texture[3]/image</use>
596                                 </image>
597                                 <filter>
598                                         <use>texture[3]/filter</use>
599                                 </filter>
600                                 <wrap-s>
601                                         <use>texture[3]/wrap-s</use>
602                                 </wrap-s>
603                                 <wrap-t>
604                                         <use>texture[3]/wrap-t</use>
605                                 </wrap-t>
606                                 <internal-format>
607                                         <use>texture[3]/internal-format</use>
608                                 </internal-format>
609                         </texture-unit>
610                         <texture-unit>
611                                 <unit>4</unit>
612                                 <image>
613                                         <use>texture[4]/image</use>
614                                 </image>
615                                 <filter>
616                                         <use>texture[4]/filter</use>
617                                 </filter>
618                                 <wrap-s>
619                                         <use>texture[4]/wrap-s</use>
620                                 </wrap-s>
621                                 <wrap-t>
622                                         <use>texture[4]/wrap-t</use>
623                                 </wrap-t>
624                                 <internal-format>
625                                         <use>texture[4]/internal-format</use>
626                                 </internal-format>
627                         </texture-unit>
628                         <texture-unit>
629                                 <unit>5</unit>
630                                 <image>
631                                         <use>texture[5]/image</use>
632                                 </image>
633                                 <filter>
634                                         <use>texture[5]/filter</use>
635                                 </filter>
636                                 <wrap-s>
637                                         <use>texture[5]/wrap-s</use>
638                                 </wrap-s>
639                                 <wrap-t>
640                                         <use>texture[5]/wrap-t</use>
641                                 </wrap-t>
642                                 <internal-format>
643                                         <use>texture[5]/internal-format</use>
644                                 </internal-format>
645                         </texture-unit>
646                         <texture-unit>
647                                 <unit>6</unit>
648                                 <image>
649                                         <use>texture[6]/image</use>
650                                 </image>
651                                 <filter>
652                                         <use>texture[6]/filter</use>
653                                 </filter>
654                                 <wrap-s>
655                                         <use>texture[6]/wrap-s</use>
656                                 </wrap-s>
657                                 <wrap-t>
658                                         <use>texture[6]/wrap-t</use>
659                                 </wrap-t>
660                                 <internal-format>
661                                         <use>texture[6]/internal-format</use>
662                                 </internal-format>
663                         </texture-unit>
664                         <texture-unit>
665                                 <unit>9</unit>
666                                 <type>noise</type>
667                         </texture-unit>
668                         <program>
669                                 <vertex-shader>Shaders/include_fog.vert</vertex-shader>
670                                 <vertex-shader>Shaders/water.vert</vertex-shader>
671                                 <fragment-shader>Shaders/include_fog.frag</fragment-shader>
672                                 <fragment-shader>Shaders/water.frag</fragment-shader>
673                         </program>
674                         <uniform>
675                                 <name>water_reflection</name>
676                                 <type>sampler-2d</type>
677                                 <value type="int">0</value>
678                         </uniform>
679                         <uniform>
680                                 <name>water_normalmap</name>
681                                 <type>sampler-2d</type>
682                                 <value type="int">2</value>
683                         </uniform>
684                         <uniform>
685                                 <name>water_dudvmap</name>
686                                 <type>sampler-2d</type>
687                                 <value type="int">3</value>
688                         </uniform>
689                         <uniform>
690                                 <name>water_reflection_grey</name>
691                                 <type>sampler-2d</type>
692                                 <value type="int">4</value>
693                         </uniform>
694                         <uniform>
695                                 <name>sea_foam</name>
696                                 <type>sampler-2d</type>
697                                 <value type="int">5</value>
698                         </uniform>
699                         <uniform>
700                                 <name>perlin_normalmap</name>
701                                 <type>sampler-2d</type>
702                                 <value type="int">6</value>
703                         </uniform>
704                         <uniform>
705                                 <name>saturation</name>
706                                 <type>float</type>
707                                 <!--<value>0.4</value>-->
708                                 <value>
709                                         <use>saturation</use>
710                                 </value>
711                         </uniform>
712                         <uniform>
713                                 <name>CloudCover0</name>
714                                 <type>float</type>
715                                 <value>
716                                         <use>cloud-cover[0]</use>
717                                 </value>
718                         </uniform>
719                         <uniform>
720                                 <name>CloudCover1</name>
721                                 <type>float</type>
722                                 <value>
723                                         <use>cloud-cover[1]</use>
724                                 </value>
725                         </uniform>
726                         <uniform>
727                                 <name>CloudCover2</name>
728                                 <type>float</type>
729                                 <value>
730                                         <use>cloud-cover[2]</use>
731                                 </value>
732                         </uniform>
733                         <uniform>
734                                 <name>CloudCover3</name>
735                                 <type>float</type>
736                                 <value>
737                                         <use>cloud-cover[3]</use>
738                                 </value>
739                         </uniform>
740                         <uniform>
741                                 <name>CloudCover4</name>
742                                 <type>float</type>
743                                 <value>
744                                         <use>cloud-cover[4]</use>
745                                 </value>
746                         </uniform>
747                         <uniform>
748                                 <name>Status</name>
749                                 <type>int</type>
750                                 <value>
751                                         <use>status</use>
752                                 </value>
753                                 <!--<value type="int">0</value> -->
754                         </uniform>
755                         <uniform>
756                                 <name>Overcast</name>
757                                 <type>float</type>
758                                 <value>
759                                         <use>overcast</use>
760                                 </value>
761                         </uniform>
762                         <uniform>
763                                 <name>WindE</name>
764                                 <type>float</type>
765                                 <value>
766                                         <use>windE</use>
767                                 </value>
768                         </uniform>
769                         <uniform>
770                                 <name>WindN</name>
771                                 <type>float</type>
772                                 <value>
773                                         <use>windN</use>
774                                 </value>
775                         </uniform>
776                         <uniform>
777                                 <name>WindFrom</name>
778                                 <type>float</type>
779                                 <value>
780                                         <use>wind-from</use>
781                                 </value>
782                         </uniform>
783                         <uniform>
784                                 <name>WaveFreq</name>
785                                 <type>float</type>
786                                 <value>
787                                         <use>WaveFreq</use>
788                                 </value>
789                         </uniform>
790                         <uniform>
791                                 <name>WaveAmp</name>
792                                 <type>float</type>
793                                 <value>
794                                         <use>WaveAmp</use>
795                                 </value>
796                         </uniform>
797                         <uniform>
798                                 <name>WaveSharp</name>
799                                 <type>float</type>
800                                 <value>
801                                         <use>WaveSharp</use>
802                                 </value>
803                         </uniform>
804                         <uniform>
805                                 <name>WaveAngle</name>
806                                 <type>float</type>
807                                 <value>
808                                         <use>WaveAngle</use>
809                                 </value>
810                         </uniform>
811                         <uniform>
812                                 <name>WaveFactor</name>
813                                 <type>float</type>
814                                 <value>
815                                         <use>WaveFactor</use>
816                                 </value>
817                         </uniform>
818                         <uniform>
819                                 <name>WaveDAngle</name>
820                                 <type>float</type>
821                                 <value>
822                                         <use>WaveDAngle</use>
823                                 </value>
824                         </uniform>
825
826                         <uniform>
827                                 <name>Noise</name>
828                                 <type>sampler-3d</type>
829                                 <value type="int">9</value>
830                         </uniform>
831                         <!--        BEGIN fog include -->
832                         <uniform>
833                                 <name>visibility</name>
834                                 <type>float</type>
835                                 <value>
836                                         <use>visibility</use>
837                                 </value>
838                         </uniform>
839                         <uniform>
840                                 <name>avisibility</name>
841                                 <type>float</type>
842                                 <value>
843                                         <use>avisibility</use>
844                                 </value>
845                         </uniform>
846                         <uniform>
847                                 <name>hazeLayerAltitude</name>
848                                 <type>float</type>
849                                 <value>
850                                         <use>lthickness</use>
851                                 </value>
852                         </uniform>
853                         <uniform>
854                                 <name>scattering</name>
855                                 <type>float</type>
856                                 <value>
857                                         <use>scattering</use>
858                                 </value>
859                         </uniform>
860                         <uniform>
861                                 <name>terminator</name>
862                                 <type>float</type>
863                                 <value>
864                                         <use>terminator</use>
865                                 </value>
866                         </uniform>
867                         <uniform>
868                                 <name>fogType</name>
869                                 <type>int</type>
870                                 <value>
871                                         <use>fogtype</use>
872                                 </value>
873                         </uniform>
874                         <!--                    END fog include -->
875                 </pass>
876         </technique>
877 </PropertyList>