Debian Codegraph @

Effects/procedural-light.eff

raw
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <PropertyList>
4 <name>Effects/procedural-light</name>
5
6 <parameters>
7 <texture n="0">
8 <type>white</type>
9 </texture>
10
11 <light_color_base_r type="float">1.0</light_color_base_r>
12 <light_color_base_g type="float">0.0</light_color_base_g>
13 <light_color_base_b type="float">0.0</light_color_base_b>
14 <light_color_center_r type="float">1.0</light_color_center_r>
15 <light_color_center_g type="float">1.0</light_color_center_g>
16 <light_color_center_b type="float">1.0</light_color_center_b>
17 <intensity_scale type="float">1.0</intensity_scale>
18 <pointing_x type="float">-1.0</pointing_x>
19 <pointing_y type="float">0.0</pointing_y>
20 <pointing_z type="float">0.0</pointing_z>
21 <is_directional type="bool">false</is_directional>
22 <is_strobe type="bool">false</is_strobe>
23 <inner_angle type="float">0.2</inner_angle>
24 <outer_angle type="float">0.4</outer_angle>
25 <zero_angle type="float">0.7</zero_angle>
26 <outer_gain type="float">0.5</outer_gain>
27 <visibility><use>/environment/ground-visibility-m</use></visibility>
28 <avisibility><use>/environment/visibility-m</use></avisibility>
29 <lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
30 <terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
31 <eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
32 <terminator><use>/environment/terminator-relative-position-m</use></terminator>
33 </parameters>
34
35 <technique n="4">
36 <predicate>
37 <and>
38 <property>/sim/rendering/shaders/skydome</property>
39 <or>
40 <less-equal>
41 <value type="float">2.0</value>
42 <glversion/>
43 </less-equal>
44 <and>
45 <extension-supported>GL_ARB_shader_objects</extension-supported>
46 <extension-supported>GL_ARB_shading_language_100</extension-supported>
47 <extension-supported>GL_ARB_vertex_shader</extension-supported>
48 <extension-supported>GL_ARB_fragment_shader</extension-supported>
49 </and>
50 </or>
51 </and>
52 </predicate>
53 <pass>
54 <lighting>true</lighting>
55 <material>
56 <active><use>material/active</use></active>
57 <ambient><use>material/ambient</use></ambient>
58 <diffuse><use>material/diffuse</use></diffuse>
59 <specular><use>material/specular</use></specular>
60 <emissive><use>material/emissive</use></emissive>
61 <shininess><use>material/shininess</use></shininess>
62 <color-mode><use>material/color-mode</use></color-mode>
63 </material>
64 <blend>
65 <active><use>blend/active</use></active>
66 <source><use>blend/source</use></source>
67 <destination><use>blend/destination</use></destination>
68 </blend>
69 <shade-model><use>shade-model</use></shade-model>
70 <cull-face><use>cull-face</use></cull-face>
71 <rendering-hint><use>rendering-hint</use></rendering-hint>
72 <render-bin>
73 <bin-number>111</bin-number>
74 <bin-name>DepthSortedBin</bin-name>
75 </render-bin>
76 <texture-unit>
77 <!-- The texture unit is always active because the shaders expect
78 that. -->
79 <unit>0</unit>
80 <active><use>texture[0]/active</use></active>
81 <type><use>texture[0]/type</use></type>
82 <image><use>texture[0]/image</use></image>
83 <filter><use>texture[0]/filter</use></filter>
84 <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
85 <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
86 <internal-format> <use>texture[0]/internal-format</use> </internal-format>
87 </texture-unit>
88 <depth>
89 <write-mask>false</write-mask>
90 </depth>
91 <vertex-program-two-side>false</vertex-program-two-side>
92 <program>
93 <vertex-shader>Shaders/light-ALS.vert</vertex-shader>
94 <fragment-shader>Shaders/light-ALS.frag</fragment-shader>
95 <fragment-shader>Shaders/noise.frag</fragment-shader>
96 <fragment-shader>Shaders/hazes.frag</fragment-shader>
97 <fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
98 </program>
99
100
101 <uniform>
102 <name>light_color_base_r</name>
103 <type>float</type>
104 <value><use>light_color_base_r</use></value>
105 </uniform>
106 <uniform>
107 <name>light_color_base_g</name>
108 <type>float</type>
109 <value><use>light_color_base_g</use></value>
110 </uniform>
111 <uniform>
112 <name>light_color_base_b</name>
113 <type>float</type>
114 <value><use>light_color_base_b</use></value>
115 </uniform>
116 <uniform>
117 <name>light_color_center_r</name>
118 <type>float</type>
119 <value><use>light_color_center_r</use></value>
120 </uniform>
121 <uniform>
122 <name>light_color_center_g</name>
123 <type>float</type>
124 <value><use>light_color_center_g</use></value>
125 </uniform>
126 <uniform>
127 <name>light_color_center_b</name>
128 <type>float</type>
129 <value><use>light_color_center_b</use></value>
130 </uniform>
131 <uniform>
132 <name>intensity_scale</name>
133 <type>float</type>
134 <value><use>intensity_scale</use></value>
135 </uniform>
136 <uniform>
137 <name>pointing_x</name>
138 <type>float</type>
139 <value><use>pointing_x</use></value>
140 </uniform>
141 <uniform>
142 <name>pointing_y</name>
143 <type>float</type>
144 <value><use>pointing_y</use></value>
145 </uniform>
146 <uniform>
147 <name>pointing_z</name>
148 <type>float</type>
149 <value><use>pointing_z</use></value>
150 </uniform>
151 <uniform>
152 <name>inner_angle</name>
153 <type>float</type>
154 <value><use>inner_angle</use></value>
155 </uniform>
156 <uniform>
157 <name>outer_angle</name>
158 <type>float</type>
159 <value><use>outer_angle</use></value>
160 </uniform>
161 <uniform>
162 <name>zero_angle</name>
163 <type>float</type>
164 <value><use>zero_angle</use></value>
165 </uniform>
166 <uniform>
167 <name>outer_gain</name>
168 <type>float</type>
169 <value><use>outer_gain</use></value>
170 </uniform>
171 <uniform>
172 <name>visibility</name>
173 <type>float</type>
174 <value><use>visibility</use></value>
175 </uniform>
176 <uniform>
177 <name>avisibility</name>
178 <type>float</type>
179 <value><use>avisibility</use></value>
180 </uniform>
181 <uniform>
182 <name>hazeLayerAltitude</name>
183 <type>float</type>
184 <value><use>lthickness</use></value>
185 </uniform>
186 <uniform>
187 <name>eye_alt</name>
188 <type>float</type>
189 <value><use>eye_alt</use></value>
190 </uniform>
191 <uniform>
192 <name>terminator</name>
193 <type>float</type>
194 <value><use>terminator</use></value>
195 </uniform>
196 <uniform>
197 <name>texture</name>
198 <type>sampler-2d</type>
199 <value type="int">0</value>
200 </uniform>
201 <uniform>
202 <name>is_directional</name>
203 <type>bool</type>
204 <value><use>is_directional</use></value>
205 </uniform>
206 <uniform>
207 <name>is_strobe</name>
208 <type>bool</type>
209 <value><use>is_strobe</use></value>
210 </uniform>
211 </pass>
212 </technique>
213
214 </PropertyList>