Debian Codegraph @

Effects/scenery-lights.eff

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <PropertyList>
3 <name>Effects/scenery-lights</name>
4 <parameters>
5 <texture n="0">
6 <type>light-sprite</type>
7 <wrap-s>clamp</wrap-s>
8 <wrap-t>clamp</wrap-t>
9 </texture>
10 <visibility><use>/environment/ground-visibility-m</use></visibility>
11 <avisibility><use>/environment/visibility-m</use></avisibility>
12 <lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
13 <eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
14 <terminator><use>/environment/terminator-relative-position-m</use></terminator>
15 <use_night_vision><use>/sim/rendering/als-filters/use-night-vision</use></use_night_vision>
16 <use_IR_vision><use>/sim/rendering/als-filters/use-IR-vision</use></use_IR_vision>
17 <sun_angle><use>/sim/time/sun-angle-rad</use></sun_angle>
18 <fov><use>/sim/current-view/field-of-view</use></fov>
19 </parameters>
20
21 <technique n="10">
22 <!-- ALS -->
23 <predicate>
24 <and>
25 <property>/sim/rendering/point-sprites</property>
26 <or>
27 <property>/sim/rendering/shaders/skydome</property>
28 <property>/sim/rendering/shaders/use-shaders</property>
29 </or>
30 <or>
31 <less-equal>
32 <value type="float">2.0</value>
33 <glversion/>
34 </less-equal>
35 <and>
36 <extension-supported>GL_ARB_point_sprite</extension-supported>
37 <extension-supported>GL_ARB_point_parameters</extension-supported>
38 <extension-supported>GL_ARB_shader_objects</extension-supported>
39 <extension-supported>GL_ARB_shading_language_100</extension-supported>
40 <extension-supported>GL_ARB_vertex_shader</extension-supported>
41 <extension-supported>GL_ARB_fragment_shader</extension-supported>
42 </and>
43 </or>
44 </and>
45 </predicate>
46 <pass>
47 <render-bin>
48 <bin-number>8</bin-number>
49 <bin-name>DepthSortedBin</bin-name>
50 </render-bin>
51 <lighting>false</lighting>
52 <blend>
53 <source>src-alpha</source>
54 <destination>one-minus-src-alpha</destination>
55 </blend>
56 <depth>
57 <write-mask>false</write-mask>
58 </depth>
59 <cull-face>off</cull-face>
60 <polygon-mode>
61 <front>point</front>
62 <back>point</back>
63 </polygon-mode>
64 <texture-unit>
65 <unit>0</unit>
66 <point-sprite>true</point-sprite>
67 <type><use>texture[0]/type</use></type>
68 <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
69 <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
70 </texture-unit>
71 <program>
72 <vertex-shader>Shaders/scenery-lights.vert</vertex-shader>
73 <fragment-shader>Shaders/scenery-lights.frag</fragment-shader>
74 <fragment-shader>Shaders/noise.frag</fragment-shader>
75 <attribute>
76 <name>lightParams</name>
77 <index>6</index>
78 </attribute>
79 <attribute>
80 <name>animationParams</name>
81 <index>7</index>
82 </attribute>
83 <attribute>
84 <name>directionParams1</name>
85 <index>10</index>
86 </attribute>
87 <attribute>
88 <name>directionParams2</name>
89 <index>11</index>
90 </attribute>
91 </program>
92 <uniform>
93 <name>visibility</name>
94 <type>float</type>
95 <value><use>visibility</use></value>
96 </uniform>
97 <uniform>
98 <name>avisibility</name>
99 <type>float</type>
100 <value><use>avisibility</use></value>
101 </uniform>
102 <uniform>
103 <name>hazeLayerAltitude</name>
104 <type>float</type>
105 <value><use>lthickness</use></value>
106 </uniform>
107 <uniform>
108 <name>eye_alt</name>
109 <type>float</type>
110 <value><use>eye_alt</use></value>
111 </uniform>
112 <uniform>
113 <name>use_night_vision</name>
114 <type>bool</type>
115 <value><use>use_night_vision</use></value>
116 </uniform>
117 <uniform>
118 <name>use_IR_vision</name>
119 <type>bool</type>
120 <value><use>use_IR_vision</use></value>
121 </uniform>
122 <uniform>
123 <name>sun_angle</name>
124 <type>float</type>
125 <value><use>sun_angle</use></value>
126 </uniform>
127 <uniform>
128 <name>fov</name>
129 <type>float</type>
130 <value><use>fov</use></value>
131 </uniform>
132 <uniform>
133 <name>texture</name>
134 <type>sampler-2d</type>
135 <value type="int">0</value>
136 </uniform>
137 <uniform>
138 <name>terminator</name>
139 <type>float</type>
140 <value><use>terminator</use></value>
141 </uniform>
142 <vertex-program-point-size>true</vertex-program-point-size>
143 </pass>
144 </technique>
145
146 <technique n="17">
147 <!-- Combined technique -->
148 <predicate>
149 <and>
150 <property>/sim/rendering/point-sprites</property>
151 <or>
152 <less-equal>
153 <value type="float">2.0</value>
154 <glversion/>
155 </less-equal>
156 <and>
157 <extension-supported>GL_ARB_point_sprite</extension-supported>
158 <extension-supported>GL_ARB_point_parameters</extension-supported>
159 </and>
160 </or>
161 </and>
162 </predicate>
163 <pass>
164 <render-bin>
165 <bin-number>8</bin-number>
166 <bin-name>DepthSortedBin</bin-name>
167 </render-bin>
168 <lighting>false</lighting>
169 <depth>
170 <write-mask>false</write-mask>
171 </depth>
172 <blend>
173 <source>src-alpha</source>
174 <destination>one-minus-src-alpha</destination>
175 </blend>
176 <alpha-test>
177 <comparison>gequal</comparison>
178 <reference type="float">0.1</reference>
179 </alpha-test>
180 <cull-face>back</cull-face>
181 <polygon-mode>
182 <front>point</front>
183 </polygon-mode>
184 <point>
185 <min-size><use>min-size</use></min-size>
186 <max-size><use>max-size</use></max-size>
187 <size><use>size</use></size>
188 <attenuation><use>attenuation</use></attenuation>
189 </point>
190 <texture-unit>
191 <unit>0</unit>
192 <point-sprite>true</point-sprite>
193 <type><use>texture[0]/type</use></type>
194 <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
195 <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
196 </texture-unit>
197 </pass>
198 </technique>
199
200 <technique n="18">
201 <!-- Sprite technique -->
202 <predicate>
203 <and>
204 <property>/sim/rendering/point-sprites</property>
205 <or>
206 <less-equal>
207 <value type="float">2.0</value>
208 <glversion/>
209 </less-equal>
210 <extension-supported>GL_ARB_point_sprite</extension-supported>
211 </or>
212 </and>
213 </predicate>
214 <pass>
215 <render-bin>
216 <bin-number>8</bin-number>
217 <bin-name>DepthSortedBin</bin-name>
218 </render-bin>
219 <lighting>false</lighting>
220 <depth>
221 <write-mask>false</write-mask>
222 </depth>
223 <blend>
224 <source>src-alpha</source>
225 <destination>one-minus-src-alpha</destination>
226 </blend>
227 <cull-face><use>cull-face</use></cull-face>
228 <polygon-mode>
229 <front>point</front>
230 </polygon-mode>
231 <texture-unit>
232 <unit>0</unit>
233 <point-sprite>true</point-sprite>
234 <type><use>texture[0]/type</use></type>
235 <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
236 <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
237 </texture-unit>
238 </pass>
239 </technique>
240
241 <technique n="19">
242 <!-- Attenuation technique -->
243 <predicate>
244 <and>
245 <or>
246 <less-equal>
247 <value type="float">2.0</value>
248 <glversion/>
249 </less-equal>
250 <extension-supported>GL_ARB_point_parameters</extension-supported>
251 </or>
252 </and>
253 </predicate>
254 <pass>
255 <point>
256 <min-size><use>min-size</use></min-size>
257 <max-size><use>max-size</use></max-size>
258 <size><use>size</use></size>
259 <attenuation><use>attenuation</use></attenuation>
260 </point>
261 <render-bin>
262 <bin-number>8</bin-number>
263 <bin-name>DepthSortedBin</bin-name>
264 </render-bin>
265 <depth>
266 <write-mask>false</write-mask>
267 </depth>
268 <blend>
269 <source>src-alpha</source>
270 <destination>one-minus-src-alpha</destination>
271 </blend>
272 <lighting>false</lighting>
273 <cull-face><use>cull-face</use></cull-face>
274 <polygon-mode>
275 <front>point</front>
276 <back>point</back>
277 </polygon-mode>
278 </pass>
279 </technique>
280
281 <technique n="20">
282 <!-- Basic technique -->
283 <pass>
284 <render-bin>
285 <bin-number>8</bin-number>
286 <bin-name>DepthSortedBin</bin-name>
287 </render-bin>
288 <lighting>false</lighting>
289 <depth>
290 <write-mask>false</write-mask>
291 </depth>
292 <blend>
293 <source>src-alpha</source>
294 <destination>one-minus-src-alpha</destination>
295 </blend>
296 <cull-face><use>cull-face</use></cull-face>
297 <polygon-mode>
298 <front>point</front>
299 </polygon-mode>
300 </pass>
301 </technique>
302 </PropertyList>