<?xml version="1.0" encoding="utf-8"?> <PropertyList> <name>Effects/model-default</name> <!-- <inherits-from>Effects/shadow</inherits-from> --> <parameters> <texture n ="0"> <type>white</type> </texture> <vertex-program-two-side type="bool">false</vertex-program-two-side> <material> <color-mode-uniform>1</color-mode-uniform> <!-- DIFFUSE --> </material> <material-id>0</material-id> <!-- BEGIN fog include --> <visibility><use>/environment/ground-visibility-m</use></visibility> <avisibility><use>/environment/visibility-m</use></avisibility> <lthickness><use>/environment/ground-haze-thickness-m</use></lthickness> <scattering><use>/rendering/scene/scattering</use></scattering> <ground_scattering><use>/environment/surface/scattering</use></ground_scattering> <terminator><use>/environment/terminator-relative-position-m</use></terminator> <terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt> <overcast><use>/rendering/scene/overcast</use></overcast> <eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt> <cloud_self_shading><use>/environment/cloud-self-shading</use></cloud_self_shading> <moonlight><use>/environment/moonlight</use></moonlight> <fogtype><use>/sim/rendering/shaders/skydome</use></fogtype> <air_pollution><use>/environment/air-pollution-norm</use></air_pollution> <display_xsize><use>/sim/startup/xsize</use></display_xsize> <display_ysize><use>/sim/startup/ysize</use></display_ysize> <view_pitch_offset><use>/sim/current-view/pitch-offset-deg</use></view_pitch_offset> <view_heading_offset><use>/sim/current-view/heading-offset-deg</use></view_heading_offset> <view_fov><use>/sim/current-view/field-of-view</use></view_fov> <use_searchlight><use>/sim/rendering/als-secondary-lights/use-searchlight</use></use_searchlight> <use_landing_light><use>/sim/rendering/als-secondary-lights/use-landing-light</use></use_landing_light> <use_alt_landing_light><use>/sim/rendering/als-secondary-lights/use-alt-landing-light</use></use_alt_landing_light> <landing_light1_offset><use>/sim/rendering/als-secondary-lights/landing-light1-offset-deg</use></landing_light1_offset> <landing_light2_offset><use>/sim/rendering/als-secondary-lights/landing-light2-offset-deg</use></landing_light2_offset> <quality_level><use>/sim/rendering/shaders/landmass</use></quality_level> <tquality_level><use>/sim/rendering/shaders/transition</use></tquality_level> <!-- END fog include --> </parameters> <technique n="5"> <predicate> <and> <property>/sim/rendering/shaders/skydome</property> <or> <less-equal> <value type="float">2.0</value> <glversion/> </less-equal> <and> <extension-supported>GL_ARB_shader_objects</extension-supported> <extension-supported>GL_ARB_shading_language_100</extension-supported> <extension-supported>GL_ARB_vertex_shader</extension-supported> <extension-supported>GL_ARB_fragment_shader</extension-supported> </and> </or> </and> </predicate> <pass> <lighting>true</lighting> <material> <active><use>material/active</use></active> <ambient><use>material/ambient</use></ambient> <diffuse><use>material/diffuse</use></diffuse> <specular><use>material/specular</use></specular> <emissive><use>material/emissive</use></emissive> <shininess><use>material/shininess</use></shininess> <color-mode><use>material/color-mode</use></color-mode> </material> <blend> <active><use>blend/active</use></active> <source><use>blend/source</use></source> <destination><use>blend/destination</use></destination> </blend> <shade-model><use>shade-model</use></shade-model> <cull-face><use>cull-face</use></cull-face> <!--<render-bin> <bin-number>1</bin-number> <bin-name>RenderBin</bin-name> </render-bin>--> <rendering-hint><use>rendering-hint</use></rendering-hint> <texture-unit> <!-- The texture unit is always active because the shaders expect that. --> <unit>0</unit> <!-- If there is a texture, the type in the derived effect will be "2d". --> <type><use>texture[0]/type</use></type> <image><use>texture[0]/image</use></image> <filter><use>texture[0]/filter</use></filter> <wrap-s><use>texture[0]/wrap-s</use></wrap-s> <wrap-t><use>texture[0]/wrap-t</use></wrap-t> <!-- <internal-format> <use>texture[0]/internal-format</use> </internal-format> --> </texture-unit> <vertex-program-two-side> <use>vertex-program-two-side</use> </vertex-program-two-side> <program> <vertex-shader>Shaders/generic-ALS-base.vert</vertex-shader> <fragment-shader>Shaders/model-ALS-base.frag</fragment-shader> <fragment-shader>Shaders/hazes.frag</fragment-shader> <fragment-shader>Shaders/secondary_lights.frag</fragment-shader> </program> <uniform> <name>visibility</name> <type>float</type> <value><use>visibility</use></value> </uniform> <uniform> <name>avisibility</name> <type>float</type> <value><use>avisibility</use></value> </uniform> <uniform> <name>hazeLayerAltitude</name> <type>float</type> <value><use>lthickness</use></value> </uniform> <uniform> <name>scattering</name> <type>float</type> <value><use>scattering</use></value> </uniform> <uniform> <name>terminator</name> <type>float</type> <value><use>terminator</use></value> </uniform> <uniform> <name>ground_scattering</name> <type>float</type> <value><use>ground_scattering</use></value> </uniform> <uniform> <name>terminator</name> <type>float</type> <value><use>terminator</use></value> </uniform> <uniform> <name>terrain_alt</name> <type>float</type> <value><use>terrain_alt</use></value> </uniform> <uniform> <name>overcast</name> <type>float</type> <value><use>overcast</use></value> </uniform> <uniform> <name>eye_alt</name> <type>float</type> <value><use>eye_alt</use></value> </uniform> <uniform> <name>cloud_self_shading</name> <type>float</type> <value><use>cloud_self_shading</use></value> </uniform> <uniform> <name>moonlight</name> <type>float</type> <value><use>moonlight</use></value> </uniform> <uniform> <name>air_pollution</name> <type>float</type> <value><use>air_pollution</use></value> </uniform> <uniform> <name>view_pitch_offset</name> <type>float</type> <value><use>view_pitch_offset</use></value> </uniform> <uniform> <name>view_heading_offset</name> <type>float</type> <value><use>view_heading_offset</use></value> </uniform> <uniform> <name>field_of_view</name> <type>float</type> <value><use>view_fov</use></value> </uniform> <uniform> <name>landing_light1_offset</name> <type>float</type> <value><use>landing_light1_offset</use></value> </uniform> <uniform> <name>landing_light2_offset</name> <type>float</type> <value><use>landing_light2_offset</use></value> </uniform> <uniform> <name>texture</name> <type>sampler-2d</type> <value type="int">0</value> </uniform> <uniform> <name>colorMode</name> <type>int</type> <value><use>material/color-mode-uniform</use></value> </uniform> <uniform> <name>use_searchlight</name> <type>int</type> <value> <use>use_searchlight</use></value> </uniform> <uniform> <name>use_landing_light</name> <type>int</type> <value> <use>use_landing_light</use></value> </uniform> <uniform> <name>use_alt_landing_light</name> <type>int</type> <value> <use>use_alt_landing_light</use></value> </uniform> <uniform> <name>display_xsize</name> <type>int</type> <value><use>display_xsize</use></value> </uniform> <uniform> <name>display_ysize</name> <type>int</type> <value><use>display_ysize</use></value> </uniform> <uniform> <name>quality_level</name> <type>int</type> <value><use>quality_level</use></value> </uniform> <uniform> <name>tquality_level</name> <type>int</type> <value><use>tquality_level</use></value> </uniform> </pass> </technique> <technique n="10"> <predicate> <and> <property>/sim/rendering/rembrandt/enabled</property> <or> <less-equal> <value type="float">2.0</value> <glversion/> </less-equal> <and> <extension-supported>GL_ARB_shader_objects</extension-supported> <extension-supported>GL_ARB_shading_language_100</extension-supported> <extension-supported>GL_ARB_vertex_shader</extension-supported> <extension-supported>GL_ARB_fragment_shader</extension-supported> </and> </or> </and> </predicate> <pass> <lighting>false</lighting> <material> <ambient><use>material/ambient</use></ambient> <diffuse><use>material/diffuse</use></diffuse> <specular><use>material/specular</use></specular> <emissive><use>material/emissive</use></emissive> <shininess><use>material/shininess</use></shininess> <color-mode>ambient-and-diffuse</color-mode> </material> <blend>false</blend> <alpha-test>true</alpha-test> <shade-model>smooth</shade-model> <cull-face><use>cull-face</use></cull-face> <render-bin> <bin-number>1</bin-number> <bin-name>RenderBin</bin-name> </render-bin> <texture-unit> <unit>0</unit> <type><use>texture[0]/type</use></type> <image><use>texture[0]/image</use></image> <filter><use>texture[0]/filter</use></filter> <wrap-s><use>texture[0]/wrap-s</use></wrap-s> <wrap-t><use>texture[0]/wrap-t</use></wrap-t> <internal-format> <use>texture[0]/internal-format</use> </internal-format> <environment> <mode>modulate</mode> </environment> </texture-unit> <vertex-program-two-side> <use>vertex-program-two-side</use> </vertex-program-two-side> <program n="0"> <vertex-shader n="0">Shaders/deferred-gbuffer.vert</vertex-shader> <fragment-shader>Shaders/deferred-gbuffer.frag</fragment-shader> <fragment-shader>Shaders/gbuffer-functions.frag</fragment-shader> <fragment-shader>Shaders/gbuffer-encode.frag</fragment-shader> </program> <uniform> <name>texture</name> <type>sampler-2d</type> <value type="int">0</value> </uniform> <!-- uniform> <name>materialID</name> <type>int</type> <value><use>material-id</use></value> </uniform --> </pass> </technique> <technique n="11"> <predicate> <and> <property>/sim/rendering/shaders/quality-level</property> <property>/sim/rendering/shaders/generic</property> <or> <less-equal> <value type="float">2.0</value> <glversion/> </less-equal> <and> <extension-supported>GL_ARB_shader_objects</extension-supported> <extension-supported>GL_ARB_shading_language_100</extension-supported> <extension-supported>GL_ARB_vertex_shader</extension-supported> <extension-supported>GL_ARB_fragment_shader</extension-supported> </and> </or> </and> </predicate> <pass> <lighting>true</lighting> <material> <active> <use>material/active</use> </active> <ambient> <use>material/ambient</use> </ambient> <diffuse> <use>material/diffuse</use> </diffuse> <specular> <use>material/specular</use> </specular> <emissive> <use>material/emissive</use> </emissive> <shininess> <use>material/shininess</use> </shininess> <color-mode> <use>material/color-mode</use> </color-mode> </material> <blend> <active> <use>blend/active</use> </active> <source> <use>blend/source</use> </source> <destination> <use>blend/destination</use> </destination> </blend> <shade-model> <use>shade-model</use> </shade-model> <cull-face> <use>cull-face</use> </cull-face> <rendering-hint> <use>rendering-hint</use> </rendering-hint> <texture-unit> <!-- The texture unit is always active because the shaders expect that. --> <unit>0</unit> <!-- If there is a texture, the type in the derived effect will be "2d". --> <type> <use>texture[0]/type</use> </type> <image> <use>texture[0]/image</use> </image> <filter> <use>texture[0]/filter</use> </filter> <wrap-s> <use>texture[0]/wrap-s</use> </wrap-s> <wrap-t> <use>texture[0]/wrap-t</use> </wrap-t> <!-- <internal-format> <use>texture[0]/internal-format</use> </internal-format> --> </texture-unit> <vertex-program-two-side> <use>vertex-program-two-side</use> </vertex-program-two-side> <program n="0"> <!-- <vertex-shader n="0">Shaders/include_fog.vert</vertex-shader> --> <!--fog include--> <vertex-shader n="1">Shaders/default.vert</vertex-shader> <fragment-shader n="0">Shaders/include_fog.frag</fragment-shader> <!--fog include--> <fragment-shader n="1">Shaders/default.frag</fragment-shader> </program> <!-- BEGIN fog include --> <uniform> <name>visibility</name> <type>float</type> <value> <use>visibility</use> </value> </uniform> <uniform> <name>avisibility</name> <type>float</type> <value> <use>avisibility</use> </value> </uniform> <uniform> <name>hazeLayerAltitude</name> <type>float</type> <value> <use>lthickness</use> </value> </uniform> <uniform> <name>scattering</name> <type>float</type> <value> <use>scattering</use> </value> </uniform> <uniform> <name>terminator</name> <type>float</type> <value> <use>terminator</use> </value> </uniform> <uniform> <name>fogType</name> <type>int</type> <value> <use>fogtype</use> </value> </uniform> <!-- END fog include --> <uniform> <name>texture</name> <type>sampler-2d</type> <value type="int">0</value> </uniform> <uniform> <name>colorMode</name> <type>int</type> <value> <use>material/color-mode-uniform</use> </value> </uniform> </pass> </technique> <technique n="13"> <pass> <lighting>true</lighting> <material> <active> <use>material/active</use> </active> <ambient> <use>material/ambient</use> </ambient> <diffuse> <use>material/diffuse</use> </diffuse> <specular> <use>material/specular</use> </specular> <emissive> <use>material/emissive</use> </emissive> <shininess> <use>material/shininess</use> </shininess> <color-mode> <use>material/color-mode</use> </color-mode> </material> <blend> <active> <use>blend/active</use> </active> <source> <use>blend/source</use> </source> <destination> <use>blend/destination</use> </destination> </blend> <shade-model> <use>shade-model</use> </shade-model> <cull-face> <use>cull-face</use> </cull-face> <rendering-hint> <use>rendering-hint</use> </rendering-hint> <texture-unit> <active> <use>texture[0]/active</use> </active> <unit>0</unit> <image> <use>texture[0]/image</use> </image> <type> <use>texture[0]/type</use> </type> <filter> <use>texture[0]/filter</use> </filter> <wrap-s> <use>texture[0]/wrap-s</use> </wrap-s> <wrap-t> <use>texture[0]/wrap-t</use> </wrap-t> <!-- <internal-format> <use>texture[0]/internal-format</use> </internal-format> --> <environment> <mode>modulate</mode> </environment> </texture-unit> <!-- A two-sided lighting model is set by default near the root of the scene graph. Perhaps that ought to be set in this effect? --> </pass> </technique> </PropertyList>