| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
|
| 3 |
<PropertyList> |
| 4 |
<name>Effects/glass</name> |
| 5 |
<inherits-from>Effects/model-transparent</inherits-from> |
| 6 |
|
| 7 |
<parameters> |
| 8 |
<texture n="1"> |
| 9 |
<image>Aircraft/Generic/Effects/window_frost.png</image> |
| 10 |
<type>2d</type> |
| 11 |
<filter>linear-mipmap-linear</filter> |
| 12 |
<wrap-s>repeat</wrap-s> |
| 13 |
<wrap-t>repeat</wrap-t> |
| 14 |
<internal-format>normalized</internal-format> |
| 15 |
</texture> |
| 16 |
<!-- placeholder for the function texture used for fogging, wiper area,...--> |
| 17 |
<texture n="2"> |
| 18 |
<type>white</type> |
| 19 |
</texture> |
| 20 |
<!-- texture for reflections in the glass --> |
| 21 |
<texture n="3"> |
| 22 |
<type>cubemap</type> |
| 23 |
<images> |
| 24 |
<positive-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_px.png</positive-x> |
| 25 |
<negative-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nx.png</negative-x> |
| 26 |
<positive-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_py.png</positive-y> |
| 27 |
<negative-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_ny.png</negative-y> |
| 28 |
<positive-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_pz.png</positive-z> |
| 29 |
<negative-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nz.png</negative-z> |
| 30 |
</images> |
| 31 |
</texture> |
| 32 |
<!-- placeholder lightmap texture for reflections in the glass --> |
| 33 |
<texture n="4"> |
| 34 |
<type>cubemap</type> |
| 35 |
<images> |
| 36 |
<positive-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_px.png</positive-x> |
| 37 |
<negative-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nx.png</negative-x> |
| 38 |
<positive-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_py.png</positive-y> |
| 39 |
<negative-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_ny.png</negative-y> |
| 40 |
<positive-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_pz.png</positive-z> |
| 41 |
<negative-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nz.png</negative-z> |
| 42 |
</images> |
| 43 |
</texture> |
| 44 |
<glass-tint type="vec4d" n="0"> 1.0 1.0 1.0 1.0</glass-tint> |
| 45 |
<overlay-color type="vec3d" n="0"> 1.0 1.0 1.0</overlay-color> |
| 46 |
<splash-x><use>/environment/aircraft-effects/splash-vector-x</use></splash-x> |
| 47 |
<splash-y><use>/environment/aircraft-effects/splash-vector-y</use></splash-y> |
| 48 |
<splash-z><use>/environment/aircraft-effects/splash-vector-z</use></splash-z> |
| 49 |
<rnorm><use>/environment/rain-norm</use></rnorm> |
| 50 |
<gsnorm><use>/environment/aircraft-effects/ground-splash-norm</use></gsnorm> |
| 51 |
<frost-level><use>/environment/aircraft-effects/frost-level</use></frost-level> |
| 52 |
<surface-mapping-scheme type="int">0</surface-mapping-scheme> |
| 53 |
<fog-level><use>/environment/aircraft-effects/fog-level</use></fog-level> |
| 54 |
<use-wipers><use>/environment/aircraft-effects/use-wipers</use></use-wipers> |
| 55 |
<use-overlay><use>/environment/aircraft-effects/use-overlay</use></use-overlay> |
| 56 |
<overlay-alpha><use>/environment/aircraft-effects/overlay-alpha</use></overlay-alpha> |
| 57 |
<overlay-glare type="float">0.5</overlay-glare> |
| 58 |
<use-reflection type="int">0</use-reflection> |
| 59 |
<reflection-strength type="float">1.0</reflection-strength> |
| 60 |
<use-mask type="int">0</use-mask> |
| 61 |
<use-reflection-lightmap type="int">0</use-reflection-lightmap> |
| 62 |
<lightmap-multi type="int">0</lightmap-multi> |
| 63 |
<lightmap-factor type="float" n="0">1.0</lightmap-factor> |
| 64 |
<lightmap-color type="vec3d" n="0"> 1.0 1.0 1.0 </lightmap-color> |
| 65 |
<lightmap-factor type="float" n="1">1.0</lightmap-factor> |
| 66 |
<lightmap-color type="vec3d" n="1"> 1.0 1.0 1.0 </lightmap-color> |
| 67 |
<lightmap-factor type="float" n="2">1.0</lightmap-factor> |
| 68 |
<lightmap-color type="vec3d" n="2"> 1.0 1.0 1.0 </lightmap-color> |
| 69 |
<lightmap-factor type="float" n="3">1.0</lightmap-factor> |
| 70 |
<lightmap-color type="vec3d" n="3"> 1.0 1.0 1.0 </lightmap-color> |
| 71 |
</parameters> |
| 72 |
|
| 73 |
<technique n="4"> |
| 74 |
<predicate> |
| 75 |
<and> |
| 76 |
<property>/sim/rendering/shaders/skydome</property> |
| 77 |
<or> |
| 78 |
<less-equal> |
| 79 |
<value type="float">2.0</value> |
| 80 |
<glversion/> |
| 81 |
</less-equal> |
| 82 |
<and> |
| 83 |
<extension-supported>GL_ARB_shader_objects</extension-supported> |
| 84 |
<extension-supported>GL_ARB_shading_language_100</extension-supported> |
| 85 |
<extension-supported>GL_ARB_vertex_shader</extension-supported> |
| 86 |
<extension-supported>GL_ARB_fragment_shader</extension-supported> |
| 87 |
</and> |
| 88 |
</or> |
| 89 |
</and> |
| 90 |
</predicate> |
| 91 |
<pass> |
| 92 |
<lighting>true</lighting> |
| 93 |
<depth> |
| 94 |
<write-mask type="bool">false</write-mask> |
| 95 |
</depth> |
| 96 |
<material> |
| 97 |
<active><use>material/active</use></active> |
| 98 |
<ambient><use>material/ambient</use></ambient> |
| 99 |
<diffuse><use>material/diffuse</use></diffuse> |
| 100 |
<specular><use>material/specular</use></specular> |
| 101 |
<emissive><use>material/emissive</use></emissive> |
| 102 |
<shininess><use>material/shininess</use></shininess> |
| 103 |
<color-mode><use>material/color-mode</use></color-mode> |
| 104 |
</material> |
| 105 |
<blend> |
| 106 |
<active><use>blend/active</use></active> |
| 107 |
<source><use>blend/source</use></source> |
| 108 |
<destination><use>blend/destination</use></destination> |
| 109 |
</blend> |
| 110 |
<shade-model><use>shade-model</use></shade-model> |
| 111 |
<cull-face><use>cull-face</use></cull-face> |
| 112 |
<rendering-hint><use>rendering-hint</use></rendering-hint> |
| 113 |
<render-bin> |
| 114 |
<bin-number>111</bin-number> |
| 115 |
<bin-name>DepthSortedBin</bin-name> |
| 116 |
</render-bin> |
| 117 |
<texture-unit> |
| 118 |
<!-- The texture unit is always active because the shaders expect |
| 119 |
that. --> |
| 120 |
<unit>0</unit> |
| 121 |
<type><use>texture[0]/type</use></type> |
| 122 |
<image><use>texture[0]/image</use></image> |
| 123 |
<filter><use>texture[0]/filter</use></filter> |
| 124 |
<wrap-s><use>texture[0]/wrap-s</use></wrap-s> |
| 125 |
<wrap-t><use>texture[0]/wrap-t</use></wrap-t> |
| 126 |
<internal-format> <use>texture[0]/internal-format</use> </internal-format> |
| 127 |
</texture-unit> |
| 128 |
<texture-unit> |
| 129 |
<unit>1</unit> |
| 130 |
<type><use>texture[1]/type</use></type> |
| 131 |
<image><use>texture[1]/image</use></image> |
| 132 |
<filter><use>texture[1]/filter</use></filter> |
| 133 |
<wrap-s><use>texture[1]/wrap-s</use></wrap-s> |
| 134 |
<wrap-t><use>texture[1]/wrap-t</use></wrap-t> |
| 135 |
<internal-format><use>texture[1]/internal-format</use></internal-format> |
| 136 |
</texture-unit> |
| 137 |
<texture-unit> |
| 138 |
<unit>2</unit> |
| 139 |
<type><use>texture[2]/type</use></type> |
| 140 |
<image><use>texture[2]/image</use></image> |
| 141 |
<filter><use>texture[2]/filter</use></filter> |
| 142 |
<wrap-s><use>texture[2]/wrap-s</use></wrap-s> |
| 143 |
<wrap-t><use>texture[2]/wrap-t</use></wrap-t> |
| 144 |
<internal-format><use>texture[2]/internal-format</use></internal-format> |
| 145 |
</texture-unit> |
| 146 |
<texture-unit> |
| 147 |
<unit>3</unit> |
| 148 |
<type><use>texture[3]/type</use></type> |
| 149 |
<images><use>texture[3]/images</use></images> |
| 150 |
</texture-unit> |
| 151 |
<texture-unit> |
| 152 |
<unit>4</unit> |
| 153 |
<type><use>texture[4]/type</use></type> |
| 154 |
<images><use>texture[4]/images</use></images> |
| 155 |
</texture-unit> |
| 156 |
<vertex-program-two-side> |
| 157 |
<use>vertex-program-two-side</use> |
| 158 |
</vertex-program-two-side> |
| 159 |
<program> |
| 160 |
<vertex-shader>Shaders/glass-ALS.vert</vertex-shader> |
| 161 |
<fragment-shader>Shaders/glass-ALS.frag</fragment-shader> |
| 162 |
<fragment-shader>Shaders/noise.frag</fragment-shader> |
| 163 |
<fragment-shader>Shaders/filters-ALS.frag</fragment-shader> |
| 164 |
</program> |
| 165 |
|
| 166 |
<uniform> |
| 167 |
<name>tint</name> |
| 168 |
<type>float-vec4</type> |
| 169 |
<value><use>glass-tint</use></value> |
| 170 |
</uniform> |
| 171 |
<uniform> |
| 172 |
<name>overlay_color</name> |
| 173 |
<type>float-vec3</type> |
| 174 |
<value><use>overlay-color</use></value> |
| 175 |
</uniform> |
| 176 |
<uniform> |
| 177 |
<name>lightmap_r_factor</name> |
| 178 |
<type>float</type> |
| 179 |
<value><use>lightmap-factor[0]</use></value> |
| 180 |
</uniform> |
| 181 |
<uniform> |
| 182 |
<name>lightmap_r_color</name> |
| 183 |
<type>float-vec3</type> |
| 184 |
<value><use>lightmap-color[0]</use></value> |
| 185 |
</uniform> |
| 186 |
<uniform> |
| 187 |
<name>lightmap_g_factor</name> |
| 188 |
<type>float</type> |
| 189 |
<value><use>lightmap-factor[1]</use></value> |
| 190 |
</uniform> |
| 191 |
<uniform> |
| 192 |
<name>lightmap_g_color</name> |
| 193 |
<type>float-vec3</type> |
| 194 |
<value><use>lightmap-color[1]</use></value> |
| 195 |
</uniform> |
| 196 |
<uniform> |
| 197 |
<name>lightmap_b_factor</name> |
| 198 |
<type>float</type> |
| 199 |
<value><use>lightmap-factor[2]</use></value> |
| 200 |
</uniform> |
| 201 |
<uniform> |
| 202 |
<name>lightmap_b_color</name> |
| 203 |
<type>float-vec3</type> |
| 204 |
<value><use>lightmap-color[2]</use></value> |
| 205 |
</uniform> |
| 206 |
<uniform> |
| 207 |
<name>lightmap_a_factor</name> |
| 208 |
<type>float</type> |
| 209 |
<value><use>lightmap-factor[3]</use></value> |
| 210 |
</uniform> |
| 211 |
<uniform> |
| 212 |
<name>lightmap_a_color</name> |
| 213 |
<type>float-vec3</type> |
| 214 |
<value><use>lightmap-color[3]</use></value> |
| 215 |
</uniform> |
| 216 |
<uniform> |
| 217 |
<name>splash_x</name> |
| 218 |
<type>float</type> |
| 219 |
<value><use>splash-x</use></value> |
| 220 |
</uniform> |
| 221 |
<uniform> |
| 222 |
<name>splash_y</name> |
| 223 |
<type>float</type> |
| 224 |
<value><use>splash-y</use></value> |
| 225 |
</uniform> |
| 226 |
<uniform> |
| 227 |
<name>splash_z</name> |
| 228 |
<type>float</type> |
| 229 |
<value><use>splash-z</use></value> |
| 230 |
</uniform> |
| 231 |
<uniform> |
| 232 |
<name>rain_norm</name> |
| 233 |
<type>float</type> |
| 234 |
<value><use>rnorm</use></value> |
| 235 |
</uniform> |
| 236 |
<uniform> |
| 237 |
<name>ground_splash_norm</name> |
| 238 |
<type>float</type> |
| 239 |
<value><use>gsnorm</use></value> |
| 240 |
</uniform> |
| 241 |
<uniform> |
| 242 |
<name>frost_level</name> |
| 243 |
<type>float</type> |
| 244 |
<value><use>frost-level</use></value> |
| 245 |
</uniform> |
| 246 |
<uniform> |
| 247 |
<name>fog_level</name> |
| 248 |
<type>float</type> |
| 249 |
<value><use>fog-level</use></value> |
| 250 |
</uniform> |
| 251 |
<uniform> |
| 252 |
<name>scattering</name> |
| 253 |
<type>float</type> |
| 254 |
<value><use>scattering</use></value> |
| 255 |
</uniform> |
| 256 |
<uniform> |
| 257 |
<name>terminator</name> |
| 258 |
<type>float</type> |
| 259 |
<value><use>terminator</use></value> |
| 260 |
</uniform> |
| 261 |
<uniform> |
| 262 |
<name>ground_scattering</name> |
| 263 |
<type>float</type> |
| 264 |
<value><use>ground_scattering</use></value> |
| 265 |
</uniform> |
| 266 |
<uniform> |
| 267 |
<name>terminator</name> |
| 268 |
<type>float</type> |
| 269 |
<value><use>terminator</use></value> |
| 270 |
</uniform> |
| 271 |
<uniform> |
| 272 |
<name>overcast</name> |
| 273 |
<type>float</type> |
| 274 |
<value><use>overcast</use></value> |
| 275 |
</uniform> |
| 276 |
<uniform> |
| 277 |
<name>hazeLayerAltitude</name> |
| 278 |
<type>float</type> |
| 279 |
<value><use>lthickness</use></value> |
| 280 |
</uniform> |
| 281 |
<uniform> |
| 282 |
<name>eye_alt</name> |
| 283 |
<type>float</type> |
| 284 |
<value><use>eye_alt</use></value> |
| 285 |
</uniform> |
| 286 |
<uniform> |
| 287 |
<name>cloud_self_shading</name> |
| 288 |
<type>float</type> |
| 289 |
<value><use>cloud_self_shading</use></value> |
| 290 |
</uniform> |
| 291 |
<uniform> |
| 292 |
<name>moonlight</name> |
| 293 |
<type>float</type> |
| 294 |
<value><use>moonlight</use></value> |
| 295 |
</uniform> |
| 296 |
<uniform> |
| 297 |
<name>air_pollution</name> |
| 298 |
<type>float</type> |
| 299 |
<value><use>air_pollution</use></value> |
| 300 |
</uniform> |
| 301 |
<uniform> |
| 302 |
<name>reflection_strength</name> |
| 303 |
<type>float</type> |
| 304 |
<value><use>reflection-strength</use></value> |
| 305 |
</uniform> |
| 306 |
<uniform> |
| 307 |
<name>overlay_alpha</name> |
| 308 |
<type>float</type> |
| 309 |
<value><use>overlay-alpha</use></value> |
| 310 |
</uniform> |
| 311 |
<uniform> |
| 312 |
<name>overlay_glare</name> |
| 313 |
<type>float</type> |
| 314 |
<value><use>overlay-glare</use></value> |
| 315 |
</uniform> |
| 316 |
<!-- filtering --> |
| 317 |
<uniform> |
| 318 |
<name>gamma</name> |
| 319 |
<type>float</type> |
| 320 |
<value><use>gamma</use></value> |
| 321 |
</uniform> |
| 322 |
<uniform> |
| 323 |
<name>brightness</name> |
| 324 |
<type>float</type> |
| 325 |
<value><use>brightness</use></value> |
| 326 |
</uniform> |
| 327 |
<uniform> |
| 328 |
<name>use_filtering</name> |
| 329 |
<type>bool</type> |
| 330 |
<value><use>use_filtering</use></value> |
| 331 |
</uniform> |
| 332 |
<uniform> |
| 333 |
<name>use_night_vision</name> |
| 334 |
<type>bool</type> |
| 335 |
<value><use>use_night_vision</use></value> |
| 336 |
</uniform> |
| 337 |
<uniform> |
| 338 |
<name>use_IR_vision</name> |
| 339 |
<type>bool</type> |
| 340 |
<value><use>use_IR_vision</use></value> |
| 341 |
</uniform> |
| 342 |
<uniform> |
| 343 |
<name>delta_T</name> |
| 344 |
<type>float</type> |
| 345 |
<value><use>delta_T</use></value> |
| 346 |
</uniform> |
| 347 |
<uniform> |
| 348 |
<name>fact_grey</name> |
| 349 |
<type>float</type> |
| 350 |
<value><use>fact_grey</use></value> |
| 351 |
</uniform> |
| 352 |
<uniform> |
| 353 |
<name>fact_black</name> |
| 354 |
<type>float</type> |
| 355 |
<value><use>fact_black</use></value> |
| 356 |
</uniform> |
| 357 |
<uniform> |
| 358 |
<name>display_xsize</name> |
| 359 |
<type>int</type> |
| 360 |
<value><use>display_xsize</use></value> |
| 361 |
</uniform> |
| 362 |
<uniform> |
| 363 |
<name>display_ysize</name> |
| 364 |
<type>int</type> |
| 365 |
<value><use>display_ysize</use></value> |
| 366 |
</uniform> |
| 367 |
|
| 368 |
<uniform> |
| 369 |
<name>texture</name> |
| 370 |
<type>sampler-2d</type> |
| 371 |
<value type="int">0</value> |
| 372 |
</uniform> |
| 373 |
<uniform> |
| 374 |
<name>frost_texture</name> |
| 375 |
<type>sampler-2d</type> |
| 376 |
<value type="int">1</value> |
| 377 |
</uniform> |
| 378 |
<uniform> |
| 379 |
<name>func_texture</name> |
| 380 |
<type>sampler-2d</type> |
| 381 |
<value type="int">2</value> |
| 382 |
</uniform> |
| 383 |
<uniform> |
| 384 |
<name>cube_texture</name> |
| 385 |
<type>sampler-cube</type> |
| 386 |
<value type="int">3</value> |
| 387 |
</uniform> |
| 388 |
<uniform> |
| 389 |
<name>cube_light_texture</name> |
| 390 |
<type>sampler-cube</type> |
| 391 |
<value type="int">4</value> |
| 392 |
</uniform> |
| 393 |
<uniform> |
| 394 |
<name>use_reflection</name> |
| 395 |
<type>int</type> |
| 396 |
<value><use>use-reflection</use></value> |
| 397 |
</uniform> |
| 398 |
<uniform> |
| 399 |
<name>use_mask</name> |
| 400 |
<type>int</type> |
| 401 |
<value><use>use-mask</use></value> |
| 402 |
</uniform> |
| 403 |
<uniform> |
| 404 |
<name>use_wipers</name> |
| 405 |
<type>int</type> |
| 406 |
<value><use>use-wipers</use></value> |
| 407 |
</uniform> |
| 408 |
<uniform> |
| 409 |
<name>use_overlay</name> |
| 410 |
<type>int</type> |
| 411 |
<value><use>use-overlay</use></value> |
| 412 |
</uniform> |
| 413 |
<uniform> |
| 414 |
<name>use_reflection_lightmap</name> |
| 415 |
<type>int</type> |
| 416 |
<value><use>use-reflection-lightmap</use></value> |
| 417 |
</uniform> |
| 418 |
<uniform> |
| 419 |
<name>lightmap_multi</name> |
| 420 |
<type>int</type> |
| 421 |
<value><use>lightmap-multi</use></value> |
| 422 |
</uniform> |
| 423 |
<uniform> |
| 424 |
<name>adaptive_mapping</name> |
| 425 |
<type>int</type> |
| 426 |
<value><use>surface-mapping-scheme</use></value> |
| 427 |
</uniform> |
| 428 |
<uniform> |
| 429 |
<name>colorMode</name> |
| 430 |
<type>int</type> |
| 431 |
<value><use>material/color-mode-uniform</use></value> |
| 432 |
</uniform> |
| 433 |
</pass> |
| 434 |
</technique> |
| 435 |
</PropertyList> |
| 436 |
|
| 437 |
|