2009-11-14 06:18:44 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
2014-11-16 21:09:41 +00:00
|
|
|
<name>Effects/model-default</name>
|
2011-12-01 21:44:10 +00:00
|
|
|
<!-- <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>
|
2012-03-25 17:03:52 +00:00
|
|
|
<material-id>0</material-id>
|
2023-02-19 15:47:55 +00:00
|
|
|
<render-bin>
|
|
|
|
<bin-number>1</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<write-depth type="bool">true</write-depth>
|
2011-12-01 21:44:10 +00:00
|
|
|
<!-- BEGIN fog include -->
|
2012-06-11 08:46:13 +00:00
|
|
|
<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>
|
2015-10-22 09:06:12 +00:00
|
|
|
<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>
|
2012-11-20 13:11:21 +00:00
|
|
|
<fogtype><use>/sim/rendering/shaders/skydome</use></fogtype>
|
2015-10-22 09:06:12 +00:00
|
|
|
<air_pollution><use>/environment/air-pollution-norm</use></air_pollution>
|
2016-03-17 12:40:37 +00:00
|
|
|
<use_filtering><use>/sim/rendering/als-filters/use-filtering</use></use_filtering>
|
|
|
|
<gamma><use>/sim/rendering/als-filters/gamma</use></gamma>
|
|
|
|
<brightness><use>/sim/rendering/als-filters/brightness</use></brightness>
|
|
|
|
<delta_T><use>/environment/surface/delta-T-structure</use></delta_T>
|
2017-03-03 17:50:13 +00:00
|
|
|
<fact_grey><use>/sim/rendering/als-filters/grey-factor</use></fact_grey>
|
|
|
|
<fact_black><use>/sim/rendering/als-filters/black-factor</use></fact_black>
|
2016-03-17 12:40:37 +00:00
|
|
|
<use_night_vision><use>/sim/rendering/als-filters/use-night-vision</use></use_night_vision>
|
|
|
|
<use_IR_vision><use>/sim/rendering/als-filters/use-IR-vision</use></use_IR_vision>
|
2014-10-11 13:12:19 +00:00
|
|
|
<display_xsize><use>/sim/startup/xsize</use></display_xsize>
|
2015-10-22 09:06:12 +00:00
|
|
|
<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>
|
|
|
|
<landing_light3_offset><use>/sim/rendering/als-secondary-lights/landing-light3-offset-deg</use></landing_light3_offset>
|
2016-07-31 07:29:02 +00:00
|
|
|
<use_geo_light type="int">0</use_geo_light>
|
|
|
|
<geo_light_r type="float">0.0</geo_light_r>
|
|
|
|
<geo_light_g type="float">0.0</geo_light_g>
|
|
|
|
<geo_light_b type="float">0.0</geo_light_b>
|
|
|
|
<geo_light_x type="float">0.0</geo_light_x>
|
|
|
|
<geo_light_y type="float">0.0</geo_light_y>
|
|
|
|
<geo_light_z type="float">0.0</geo_light_z>
|
|
|
|
<geo_light_radius type="float">0.0</geo_light_radius>
|
|
|
|
<geo_ambience type="float">0.0</geo_ambience>
|
2014-10-12 08:13:58 +00:00
|
|
|
<quality_level><use>/sim/rendering/shaders/landmass</use></quality_level>
|
2015-10-22 09:06:12 +00:00
|
|
|
<tquality_level><use>/sim/rendering/shaders/transition</use></tquality_level>
|
2011-12-01 21:44:10 +00:00
|
|
|
<!-- END fog include -->
|
2020-11-10 00:45:54 +00:00
|
|
|
<!-- BEGIN shadows include -->
|
|
|
|
<shadows_enabled>
|
|
|
|
<use>/sim/rendering/shadows/enabled</use>
|
|
|
|
</shadows_enabled>
|
|
|
|
<sun_atlas_size>
|
|
|
|
<use>/sim/rendering/shadows/sun-atlas-size</use>
|
|
|
|
</sun_atlas_size>
|
|
|
|
<!-- END shadows include -->
|
2011-12-01 21:44:10 +00:00
|
|
|
</parameters>
|
2012-03-08 22:20:39 +00:00
|
|
|
|
2012-03-31 11:53:51 +00:00
|
|
|
<technique n="5">
|
2012-03-08 22:20:39 +00:00
|
|
|
<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>
|
2023-02-19 15:47:55 +00:00
|
|
|
<depth>
|
|
|
|
<write-mask><use>write-depth</use></write-mask>
|
|
|
|
</depth>
|
2012-03-08 22:20:39 +00:00
|
|
|
<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>
|
2023-02-19 15:47:55 +00:00
|
|
|
<render-bin>
|
|
|
|
<bin-number><use>render-bin/bin-number</use></bin-number>
|
|
|
|
<bin-name><use>render-bin/bin-name</use></bin-name>
|
|
|
|
</render-bin>
|
2012-03-08 22:20:39 +00:00
|
|
|
<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>
|
2015-08-10 06:36:20 +00:00
|
|
|
<vertex-shader>Shaders/generic-ALS-base.vert</vertex-shader>
|
2020-11-10 00:45:54 +00:00
|
|
|
<vertex-shader>Shaders/shadows-include.vert</vertex-shader>
|
2015-08-10 06:36:20 +00:00
|
|
|
<fragment-shader>Shaders/model-ALS-base.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/hazes.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/secondary_lights.frag</fragment-shader>
|
2016-03-27 17:27:32 +00:00
|
|
|
<fragment-shader>Shaders/noise.frag</fragment-shader>
|
2016-03-17 12:40:37 +00:00
|
|
|
<fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
|
2020-11-10 00:45:54 +00:00
|
|
|
<fragment-shader>Shaders/shadows-include.frag</fragment-shader>
|
2020-12-22 09:52:59 +00:00
|
|
|
<fragment-shader>Shaders/clustered-include.frag</fragment-shader>
|
2012-03-08 22:20:39 +00:00
|
|
|
</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>
|
2012-11-20 13:11:21 +00:00
|
|
|
<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>
|
2014-10-12 08:13:58 +00:00
|
|
|
<uniform>
|
|
|
|
<name>air_pollution</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>air_pollution</use></value>
|
|
|
|
</uniform>
|
2016-03-17 12:40:37 +00:00
|
|
|
<uniform>
|
|
|
|
<name>gamma</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>gamma</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>brightness</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>brightness</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_filtering</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value><use>use_filtering</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_night_vision</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value><use>use_night_vision</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_IR_vision</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value><use>use_IR_vision</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>delta_T</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>delta_T</use></value>
|
|
|
|
</uniform>
|
2017-03-03 17:50:13 +00:00
|
|
|
<uniform>
|
|
|
|
<name>fact_grey</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>fact_grey</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>fact_black</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>fact_black</use></value>
|
|
|
|
</uniform>
|
2014-10-12 08:13:58 +00:00
|
|
|
<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>
|
2015-10-22 09:06:12 +00:00
|
|
|
<uniform>
|
|
|
|
<name>landing_light3_offset</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>landing_light3_offset</use></value>
|
|
|
|
</uniform>
|
2016-07-31 07:29:02 +00:00
|
|
|
<uniform>
|
|
|
|
<name>geo_light_r</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>geo_light_r</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>geo_light_g</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>geo_light_g</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>geo_light_b</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>geo_light_b</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>geo_light_x</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>geo_light_x</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>geo_light_y</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>geo_light_y</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>geo_light_z</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>geo_light_z</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>geo_light_radius</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>geo_light_radius</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>geo_ambience</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>geo_ambience</use></value>
|
|
|
|
</uniform>
|
2012-03-08 22:20:39 +00:00
|
|
|
<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>
|
2014-10-12 08:13:58 +00:00
|
|
|
<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>
|
2016-07-31 07:29:02 +00:00
|
|
|
<uniform>
|
|
|
|
<name>use_geo_light</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value> <use>use_geo_light</use></value>
|
|
|
|
</uniform>
|
2014-10-12 08:13:58 +00:00
|
|
|
<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>
|
2020-11-10 00:45:54 +00:00
|
|
|
<!-- BEGIN shadows include -->
|
|
|
|
<uniform>
|
|
|
|
<name>shadow_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">10</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>shadows_enabled</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value>
|
|
|
|
<use>shadows_enabled</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>sun_atlas_size</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>sun_atlas_size</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- END shadows include -->
|
2012-03-08 22:20:39 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
|
2012-03-25 17:03:52 +00:00
|
|
|
<technique n="11">
|
2011-12-01 21:44:10 +00:00
|
|
|
<predicate>
|
|
|
|
<and>
|
2021-03-31 02:05:34 +00:00
|
|
|
<property>/sim/rendering/shaders/use-shaders</property>
|
2011-12-01 21:44:10 +00:00
|
|
|
<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>
|
2023-02-19 15:47:55 +00:00
|
|
|
<depth>
|
|
|
|
<write-mask><use>write-depth</use></write-mask>
|
|
|
|
</depth>
|
2011-12-01 21:44:10 +00:00
|
|
|
<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>
|
2023-02-19 15:47:55 +00:00
|
|
|
<render-bin>
|
|
|
|
<bin-number><use>render-bin/bin-number</use></bin-number>
|
|
|
|
<bin-name><use>render-bin/bin-name</use></bin-name>
|
|
|
|
</render-bin>
|
2011-12-01 21:44:10 +00:00
|
|
|
<texture-unit>
|
|
|
|
<!-- The texture unit is always active because the shaders expect
|
2009-11-17 06:23:12 +00:00
|
|
|
that. -->
|
2011-12-01 21:44:10 +00:00
|
|
|
<unit>0</unit>
|
|
|
|
<!-- If there is a texture, the type in the derived effect
|
2009-11-17 06:23:12 +00:00
|
|
|
will be "2d". -->
|
2011-12-01 21:44:10 +00:00
|
|
|
<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>
|
|
|
|
<!--
|
2009-11-14 06:18:44 +00:00
|
|
|
<internal-format>
|
|
|
|
<use>texture[0]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
-->
|
2011-12-01 21:44:10 +00:00
|
|
|
</texture-unit>
|
|
|
|
<vertex-program-two-side>
|
|
|
|
<use>vertex-program-two-side</use>
|
|
|
|
</vertex-program-two-side>
|
2014-02-23 12:10:11 +00:00
|
|
|
<program n="0">
|
|
|
|
<!-- <vertex-shader n="0">Shaders/include_fog.vert</vertex-shader> --> <!--fog include-->
|
2011-12-01 21:44:10 +00:00
|
|
|
<vertex-shader n="1">Shaders/default.vert</vertex-shader>
|
2020-11-10 00:45:54 +00:00
|
|
|
<vertex-shader n="2">Shaders/shadows-include.vert</vertex-shader>
|
2014-02-23 12:10:11 +00:00
|
|
|
<fragment-shader n="0">Shaders/include_fog.frag</fragment-shader> <!--fog include-->
|
2011-12-01 21:44:10 +00:00
|
|
|
<fragment-shader n="1">Shaders/default.frag</fragment-shader>
|
2020-11-10 00:45:54 +00:00
|
|
|
<fragment-shader n="2">Shaders/shadows-include.frag</fragment-shader>
|
2020-12-22 09:52:59 +00:00
|
|
|
<fragment-shader n="3">Shaders/clustered-include.frag</fragment-shader>
|
2011-12-01 21:44:10 +00:00
|
|
|
</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>
|
2020-11-10 00:45:54 +00:00
|
|
|
<!-- BEGIN shadows include -->
|
|
|
|
<uniform>
|
|
|
|
<name>shadow_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">10</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>shadows_enabled</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value>
|
|
|
|
<use>shadows_enabled</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>sun_atlas_size</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>sun_atlas_size</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- END shadows include -->
|
2011-12-01 21:44:10 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
2014-02-23 12:10:11 +00:00
|
|
|
<technique n="13">
|
2011-12-01 21:44:10 +00:00
|
|
|
<pass>
|
|
|
|
<lighting>true</lighting>
|
2023-02-19 15:47:55 +00:00
|
|
|
<depth>
|
|
|
|
<write-mask><use>write-depth</use></write-mask>
|
|
|
|
</depth>
|
2011-12-01 21:44:10 +00:00
|
|
|
<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>
|
2023-02-19 15:47:55 +00:00
|
|
|
<render-bin>
|
|
|
|
<bin-number><use>render-bin/bin-number</use></bin-number>
|
|
|
|
<bin-name><use>render-bin/bin-name</use></bin-name>
|
|
|
|
</render-bin>
|
2011-12-01 21:44:10 +00:00
|
|
|
<texture-unit>
|
|
|
|
<active>
|
|
|
|
<use>texture[0]/active</use>
|
|
|
|
</active>
|
|
|
|
<unit>0</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[0]/image</use>
|
|
|
|
</image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>
|
|
|
|
<use>texture[0]/type</use>
|
|
|
|
</type>
|
2011-12-01 21:44:10 +00:00
|
|
|
<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>
|
|
|
|
<!--
|
2009-11-14 06:18:44 +00:00
|
|
|
<internal-format>
|
|
|
|
<use>texture[0]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
-->
|
2011-12-01 21:44:10 +00:00
|
|
|
<environment>
|
|
|
|
<mode>modulate</mode>
|
|
|
|
</environment>
|
|
|
|
</texture-unit>
|
|
|
|
<!-- A two-sided lighting model is set by default near the root
|
2010-06-15 17:29:24 +00:00
|
|
|
of the scene graph. Perhaps that ought to be set in this
|
|
|
|
effect?
|
|
|
|
-->
|
2011-12-01 21:44:10 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
2021-04-10 09:14:16 +00:00
|
|
|
|
2023-04-07 06:17:37 +00:00
|
|
|
<technique n="109">
|
|
|
|
<scheme>hdr-geometry</scheme>
|
|
|
|
<pass>
|
|
|
|
<!-- Reverse floating point depth buffer -->
|
|
|
|
<depth>
|
|
|
|
<function>gequal</function>
|
|
|
|
<near>1.0</near>
|
|
|
|
<far>0.0</far>
|
|
|
|
</depth>
|
|
|
|
<stencil>
|
|
|
|
<function>always</function>
|
|
|
|
<value>8</value>
|
|
|
|
<pass>replace</pass>
|
|
|
|
</stencil>
|
|
|
|
<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>
|
|
|
|
</texture-unit>
|
|
|
|
<blend>0</blend>
|
|
|
|
<rendering-hint>opaque</rendering-hint>
|
|
|
|
<cull-face><use>cull-face</use></cull-face>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/HDR/model_default.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/HDR/model_default.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/HDR/gbuffer_pack.glsl</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/HDR/normal_encoding.glsl</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/HDR/color.glsl</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>color_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>color_mode</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>material/color-mode</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>material_diffuse</name>
|
|
|
|
<type>float-vec4</type>
|
|
|
|
<value><use>material/diffuse</use></value>
|
|
|
|
</uniform>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2021-08-19 16:20:37 +00:00
|
|
|
|
2023-04-07 06:17:37 +00:00
|
|
|
<technique n="119">
|
|
|
|
<scheme>hdr-shadow</scheme>
|
|
|
|
<pass>
|
|
|
|
<color-mask type="vec4d">0 0 0 0</color-mask>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<blend>0</blend>
|
|
|
|
<polygon-offset>
|
|
|
|
<factor>1.1</factor>
|
|
|
|
<units>4.0</units>
|
|
|
|
</polygon-offset>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/HDR/model_shadow.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/HDR/model_shadow.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2021-08-26 20:51:46 +00:00
|
|
|
|
2009-11-14 06:18:44 +00:00
|
|
|
</PropertyList>
|