Debian Codegraph @

Effects/thrust-flame.eff

raw
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <PropertyList>
4 <name>Effects/thrust-flame</name>
5
6 <parameters>
7 <texture n="0">
8 <type>white</type>
9 </texture>
10
11 <flame_radius_fraction type="float">0.2</flame_radius_fraction>
12 <thrust_collimation type="float">0.1</thrust_collimation>
13 <thrust_density type="float">0.5</thrust_density>
14 <base_flame_density type="float">1.0</base_flame_density>
15 <shock_frequency type="float">0.5</shock_frequency>
16 <noise_strength type="float">0.2</noise_strength>
17 <noise_scale type="float">0.1</noise_scale>
18 <flame_color_low_r type="float">0.95</flame_color_low_r>
19 <flame_color_low_g type="float">0.55</flame_color_low_g>
20 <flame_color_low_b type="float">0.0</flame_color_low_b>
21 <flame_color_high_r type="float">1.0</flame_color_high_r>
22 <flame_color_high_g type="float">0.8</flame_color_high_g>
23 <flame_color_high_b type="float">0.3</flame_color_high_b>
24 <base_flame_r type="float">1.0</base_flame_r>
25 <base_flame_g type="float">0.8</base_flame_g>
26 <base_flame_b type="float">0.3</base_flame_b>
27 <random_seed type="float">0.0</random_seed>
28 <deflection_coeff type="float">0.0</deflection_coeff>
29 <use_shocks type="int">1</use_shocks>
30 <use_noise type="int">1</use_noise>
31 <visibility><use>/environment/ground-visibility-m</use></visibility>
32 <avisibility><use>/environment/visibility-m</use></avisibility>
33 <lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
34 <terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
35 <eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
36 </parameters>
37
38 <technique n="4">
39 <predicate>
40 <and>
41 <property>/sim/rendering/shaders/skydome</property>
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 </and>
55 </predicate>
56 <pass>
57 <lighting>true</lighting>
58 <material>
59 <active><use>material/active</use></active>
60 <ambient><use>material/ambient</use></ambient>
61 <diffuse><use>material/diffuse</use></diffuse>
62 <specular><use>material/specular</use></specular>
63 <emissive><use>material/emissive</use></emissive>
64 <shininess><use>material/shininess</use></shininess>
65 <color-mode><use>material/color-mode</use></color-mode>
66 </material>
67 <blend>
68 <active><use>blend/active</use></active>
69 <source><use>blend/source</use></source>
70 <destination><use>blend/destination</use></destination>
71 </blend>
72 <shade-model><use>shade-model</use></shade-model>
73 <cull-face><use>cull-face</use></cull-face>
74 <rendering-hint><use>rendering-hint</use></rendering-hint>
75 <render-bin>
76 <bin-number>111</bin-number>
77 <bin-name>DepthSortedBin</bin-name>
78 </render-bin>
79 <texture-unit>
80 <!-- The texture unit is always active because the shaders expect
81 that. -->
82 <unit>0</unit>
83 <active><use>texture[0]/active</use></active>
84 <type><use>texture[0]/type</use></type>
85 <image><use>texture[0]/image</use></image>
86 <filter><use>texture[0]/filter</use></filter>
87 <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
88 <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
89 <internal-format> <use>texture[0]/internal-format</use> </internal-format>
90 </texture-unit>
91 <depth>
92 <write-mask>false</write-mask>
93 </depth>
94 <vertex-program-two-side>false</vertex-program-two-side>
95 <program>
96 <vertex-shader>Shaders/thrustflame-ALS.vert</vertex-shader>
97 <fragment-shader>Shaders/thrustflame-ALS.frag</fragment-shader>
98 <fragment-shader>Shaders/noise.frag</fragment-shader>
99 </program>
100
101 <uniform>
102 <name>flame_radius_fraction</name>
103 <type>float</type>
104 <value><use>flame_radius_fraction</use></value>
105 </uniform>
106 <uniform>
107 <name>thrust_collimation</name>
108 <type>float</type>
109 <value><use>thrust_collimation</use></value>
110 </uniform>
111 <uniform>
112 <name>thrust_density</name>
113 <type>float</type>
114 <value><use>thrust_density</use></value>
115 </uniform>
116 <uniform>
117 <name>base_flame_density</name>
118 <type>float</type>
119 <value><use>base_flame_density</use></value>
120 </uniform>
121 <uniform>
122 <name>shock_frequency</name>
123 <type>float</type>
124 <value><use>shock_frequency</use></value>
125 </uniform>
126 <uniform>
127 <name>noise_strength</name>
128 <type>float</type>
129 <value><use>noise_strength</use></value>
130 </uniform>
131 <uniform>
132 <name>noise_scale</name>
133 <type>float</type>
134 <value><use>noise_scale</use></value>
135 </uniform>
136 <uniform>
137 <name>random_seed</name>
138 <type>float</type>
139 <value><use>random_seed</use></value>
140 </uniform>
141 <uniform>
142 <name>flame_color_low_r</name>
143 <type>float</type>
144 <value><use>flame_color_low_r</use></value>
145 </uniform>
146 <uniform>
147 <name>flame_color_low_g</name>
148 <type>float</type>
149 <value><use>flame_color_low_g</use></value>
150 </uniform>
151 <uniform>
152 <name>flame_color_low_b</name>
153 <type>float</type>
154 <value><use>flame_color_low_b</use></value>
155 </uniform>
156 <uniform>
157 <name>flame_color_high_r</name>
158 <type>float</type>
159 <value><use>flame_color_high_r</use></value>
160 </uniform>
161 <uniform>
162 <name>flame_color_high_g</name>
163 <type>float</type>
164 <value><use>flame_color_high_g</use></value>
165 </uniform>
166 <uniform>
167 <name>flame_color_high_b</name>
168 <type>float</type>
169 <value><use>flame_color_high_b</use></value>
170 </uniform>
171 <uniform>
172 <name>base_flame_r</name>
173 <type>float</type>
174 <value><use>base_flame_r</use></value>
175 </uniform>
176 <uniform>
177 <name>base_flame_g</name>
178 <type>float</type>
179 <value><use>base_flame_g</use></value>
180 </uniform>
181 <uniform>
182 <name>base_flame_b</name>
183 <type>float</type>
184 <value><use>base_flame_b</use></value>
185 </uniform>
186 <uniform>
187 <name>deflection_coeff</name>
188 <type>float</type>
189 <value><use>deflection_coeff</use></value>
190 </uniform>
191
192 <uniform>
193 <name>use_shocks</name>
194 <type>int</type>
195 <value><use>use_shocks</use></value>
196 </uniform>
197 <uniform>
198 <name>use_noise</name>
199 <type>int</type>
200 <value><use>use_noise</use></value>
201 </uniform>
202
203
204
205 <uniform>
206 <name>texture</name>
207 <type>sampler-2d</type>
208 <value type="int">0</value>
209 </uniform>
210 <uniform>
211 <name>colorMode</name>
212 <type>int</type>
213 <value><use>material/color-mode-uniform</use></value>
214 </uniform>
215 </pass>
216 </technique>
217
218 </PropertyList>