Quality slider overwrites custom shader settings. All effects now listen to the new...
[fg:toms-fgdata.git] / Effects / rain-layer.eff
1 <?xml version="1.0" encoding="utf-8"?>
2 <PropertyList>
3   <name>Effects/rain-layer</name>
4   <parameters>
5     <texture n ="0">
6     </texture>
7   </parameters>
8   <technique n="10">
9     <predicate>
10       <and>
11         <property>/sim/rendering/clouds3d-enable</property>
12         <less-equal>
13           <value type="float">1.0</value>
14           <shader-language/>
15         </less-equal>
16       </and>
17     </predicate>
18     <pass n="0">
19       <!-- This is apparently not used, so maybe we'll blow it way soon. -->
20       <lighting>true</lighting>
21       <material>
22         <ambient type="vec4d">0.5 0.5 0.5 1.0</ambient>
23         <diffuse type="vec4d">0.5 0.5 0.5 1.0</diffuse>
24         <color-mode>off</color-mode>
25       </material>
26       <alpha-test>
27         <comparison>greater</comparison>
28         <reference type="float">0.01</reference>
29       </alpha-test>
30       <shade-model>smooth</shade-model>
31       <blend>
32         <source>src-alpha</source>
33         <destination>one-minus-src-alpha</destination>
34       </blend>
35       <depth>
36         <write-mask>false</write-mask>
37       </depth>
38       <render-bin>
39         <bin-number>10</bin-number>
40         <bin-name>DepthSortedBin</bin-name>
41       </render-bin>
42       <texture-unit>
43         <unit>0</unit>
44         <type><use>texture[0]/type</use></type>
45         <image><use>texture[0]/image</use></image>
46         <filter><use>texture[0]/filter</use></filter>
47         <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
48         <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
49         <!--<wrap-s>clamp</wrap-s>
50         <wrap-t>clamp</wrap-t>-->
51       </texture-unit>
52       <program>
53         <vertex-shader>Shaders/rain-layer.vert</vertex-shader>
54         <fragment-shader>Shaders/rain-layer.frag</fragment-shader>
55       </program>
56       <uniform>
57         <name>baseTexture</name>
58         <type>sampler-2d</type>
59         <value type="int">0</value>
60       </uniform>
61       <vertex-program-two-side>true</vertex-program-two-side>
62     </pass>
63   </technique>
64 </PropertyList>