2012-04-28 21:51:05 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
2014-11-16 21:09:41 +00:00
|
|
|
<name>Effects/building</name>
|
2012-05-06 22:59:52 +00:00
|
|
|
<inherits-from>Effects/model-combined-deferred</inherits-from>
|
|
|
|
<parameters>
|
2012-06-30 19:37:08 +00:00
|
|
|
<texture n="0">
|
|
|
|
<type>2d</type>
|
|
|
|
<image>Textures/buildings.png</image>
|
|
|
|
<filter>linear-mipmap-linear</filter>
|
2019-08-20 16:02:27 +00:00
|
|
|
<wrap-s>repeat</wrap-s>
|
2012-06-30 19:37:08 +00:00
|
|
|
<wrap-t>clamp</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
|
|
|
<!-- Normal Map -->
|
2015-03-29 11:47:58 +00:00
|
|
|
<normalmap-enabled type="int"> 1 </normalmap-enabled>
|
2012-06-30 19:37:08 +00:00
|
|
|
<normalmap-dds type="int"> 0 </normalmap-dds>
|
|
|
|
<normalmap-tiling type="float"> 1.0 </normalmap-tiling>
|
2015-03-29 11:47:58 +00:00
|
|
|
<texture n="2">
|
|
|
|
<image>Textures/buildings-normalmap_orig.png</image>
|
|
|
|
<type>2d</type>
|
|
|
|
<filter>linear-mipmap-linear</filter>
|
2019-08-20 16:02:27 +00:00
|
|
|
<wrap-s>repeat</wrap-s>
|
2015-03-29 11:47:58 +00:00
|
|
|
<wrap-t>clamp</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
2012-06-30 19:37:08 +00:00
|
|
|
<!-- Light Map -->
|
|
|
|
<texture n="3">
|
|
|
|
<image>Textures/buildings-lightmap.png</image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>2d</type>
|
2012-06-30 19:37:08 +00:00
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>clamp</wrap-s>
|
|
|
|
<wrap-t>clamp</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
|
|
|
<lightmap-enabled type="int"> 1 </lightmap-enabled>
|
|
|
|
<lightmap-multi type="int"> 0 </lightmap-multi>
|
|
|
|
<lightmap-factor type="float" n="0">
|
|
|
|
<use>/sim/time/sun-angle-rad</use>
|
|
|
|
</lightmap-factor>
|
|
|
|
<lightmap-color type="vec3d" n="0"> 0.3 0.3 0.3 </lightmap-color>
|
|
|
|
<!--<lightmap-factor type="float" n="1">1.0</lightmap-factor>
|
|
|
|
<lightmap-color type="vec3d" n="1"> 1.0 1.0 1.0 </lightmap-color>
|
|
|
|
<lightmap-factor type="float" n="2">1.0</lightmap-factor>
|
|
|
|
<lightmap-color type="vec3d" n="2"> 1.0 1.0 1.0 </lightmap-color>
|
|
|
|
<lightmap-factor type="float" n="3">1.0</lightmap-factor>
|
|
|
|
<lightmap-color type="vec3d" n="3"> 1.0 1.0 1.0 </lightmap-color>-->
|
|
|
|
<!-- Reflection -->
|
|
|
|
<reflection-enabled type="int"> 1 </reflection-enabled>
|
2012-09-13 07:54:27 +00:00
|
|
|
<reflect-map-enabled type="int"> 1 </reflect-map-enabled>
|
2012-09-13 21:05:18 +00:00
|
|
|
<reflection-correction type="float"> -0.15 </reflection-correction>
|
2012-06-30 19:37:08 +00:00
|
|
|
<reflection-dynamic type="int"> 0 </reflection-dynamic>
|
|
|
|
<reflection-fresnel type="float"> 0.0 </reflection-fresnel>
|
|
|
|
<reflection-rainbow type="float"> 0.0 </reflection-rainbow>
|
|
|
|
<reflection-noise type="float"> 0.0 </reflection-noise>
|
2012-07-14 21:33:39 +00:00
|
|
|
<texture n= "5" >
|
|
|
|
<type>cubemap</type>
|
|
|
|
<images>
|
2012-09-13 21:05:18 +00:00
|
|
|
<positive-x>Aircraft/Generic/Effects/CubeMaps/buildings/N.png</positive-x>
|
|
|
|
<negative-x>Aircraft/Generic/Effects/CubeMaps/buildings/S.png</negative-x>
|
|
|
|
<positive-y>Aircraft/Generic/Effects/CubeMaps/buildings/W.png</positive-y>
|
|
|
|
<negative-y>Aircraft/Generic/Effects/CubeMaps/buildings/E.png</negative-y>
|
|
|
|
<positive-z>Aircraft/Generic/Effects/CubeMaps/buildings/U.png</positive-z>
|
|
|
|
<negative-z>Aircraft/Generic/Effects/CubeMaps/buildings/D.png</negative-z>
|
2012-07-14 21:33:39 +00:00
|
|
|
</images>
|
|
|
|
</texture>
|
2019-08-20 16:02:27 +00:00
|
|
|
<texture n="6">
|
|
|
|
<!-- instance information from shader -->
|
|
|
|
<type>2d</type>
|
|
|
|
<wrap-s>clamp</wrap-s>
|
|
|
|
<wrap-t>clamp</wrap-t>
|
|
|
|
</texture>
|
2012-06-30 19:37:08 +00:00
|
|
|
<!--Ambient correction -->
|
|
|
|
<ambient-correction type="float"> 0.0 </ambient-correction>
|
|
|
|
<dirt-enabled type="int"> 0 </dirt-enabled>
|
|
|
|
<dirt-color type="vec3d"> 0.0 0.0 0.0 </dirt-color>
|
|
|
|
<dirt-factor type="float"> 0.0 </dirt-factor>
|
|
|
|
<material>
|
|
|
|
<active>true</active>
|
|
|
|
<color-mode-uniform>1</color-mode-uniform>
|
|
|
|
<ambient type="vec4d">0.6 0.6 0.6 1.0</ambient>
|
|
|
|
<diffuse type="vec4d">1.0 1.0 1.0 1.0</diffuse>
|
|
|
|
<specular type="vec4d">0.0 0.0 0.0 1.0</specular>
|
|
|
|
<emissive type="vec4d">0.02 0.02 0.02 1.0</emissive>
|
2012-07-16 11:12:11 +00:00
|
|
|
<shininess>0.1</shininess>
|
2012-06-30 19:37:08 +00:00
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
<color-mode-uniform>ambient-and-diffuse</color-mode-uniform>
|
|
|
|
<!-- DIFFUSE -->
|
2012-05-06 22:59:52 +00:00
|
|
|
</material>
|
|
|
|
<material-id>0</material-id>
|
|
|
|
<blend>
|
2012-06-30 19:37:08 +00:00
|
|
|
<active>0</active>
|
|
|
|
<source>0</source>
|
|
|
|
<destination>0</destination>
|
2012-05-06 22:59:52 +00:00
|
|
|
</blend>
|
|
|
|
<shade-model>flat</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<rendering-hint>opaque</rendering-hint>
|
2012-06-30 19:37:08 +00:00
|
|
|
<!-- fog include for atmospheric scattering-->
|
|
|
|
<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>
|
|
|
|
<fogtype><use>/sim/rendering/shaders/skydome</use></fogtype>
|
|
|
|
<terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
|
2017-03-03 17:50:13 +00:00
|
|
|
<overcast><use>/rendering/scene/overcast</use></overcast>
|
|
|
|
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
|
2012-08-09 21:52:51 +00:00
|
|
|
<snow_level><use>/environment/snow-level-m</use></snow_level>
|
2012-06-30 19:37:08 +00:00
|
|
|
<dust_cover_factor><use>/environment/surface/dust-cover-factor</use></dust_cover_factor>
|
|
|
|
<fogtype><use>/sim/rendering/shaders/skydome</use></fogtype>
|
|
|
|
<fogstructure><use>/environment/fog-structure</use></fogstructure>
|
2016-03-17 12:40:37 +00:00
|
|
|
<delta_T><use>/environment/surface/delta-T-structure</use></delta_T>
|
2012-06-30 19:37:08 +00:00
|
|
|
<!-- END fog include -->
|
2018-02-11 07:46:21 +00:00
|
|
|
<building-flag type="int">1</building-flag>
|
2012-05-06 22:59:52 +00:00
|
|
|
</parameters>
|
2013-01-31 12:15:18 +00:00
|
|
|
<!-- Atmospheric scattering technique with model shader-->
|
|
|
|
|
|
|
|
<technique n="4">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
<property>/sim/rendering/shaders/quality-level</property>
|
|
|
|
<property>/sim/rendering/shaders/model</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>
|
|
|
|
<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>
|
|
|
|
<alpha-test>false</alpha-test>
|
|
|
|
<shade-model>flat</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>-1</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<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>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/building-default.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/trivial.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<color-mask type="vec4d">0 0 0 0</color-mask>
|
|
|
|
</pass>-->
|
|
|
|
<pass>
|
2019-08-20 16:02:27 +00:00
|
|
|
<texture-unit n="4">
|
|
|
|
<unit>4</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[3]/image</use>
|
|
|
|
</image>
|
|
|
|
<type>
|
|
|
|
<use>texture[3]/type</use>
|
|
|
|
</type>
|
|
|
|
<filter>
|
|
|
|
<use>texture[3]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[3]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[3]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[3]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2013-01-31 12:15:18 +00:00
|
|
|
<program>
|
2015-05-14 12:54:19 +00:00
|
|
|
<vertex-shader n="0">Shaders/building-model-ALS-ultra.vert</vertex-shader>
|
2016-03-17 12:40:37 +00:00
|
|
|
<!--<fragment-shader n="0">Shaders/model-ALS-ultra.frag</fragment-shader>
|
|
|
|
<fragment-shader n="1">Shaders/cloud-shadowfunc.frag</fragment-shader>
|
|
|
|
<fragment-shader n="2">Shaders/hazes.frag</fragment-shader>
|
|
|
|
<fragment-shader n="3">Shaders/secondary_lights.frag</fragment-shader>
|
|
|
|
<fragment-shader n="4">Shaders/filters-ALS.frag</fragment-shader>-->
|
2019-08-20 16:02:27 +00:00
|
|
|
<attribute>
|
|
|
|
<name>instancePosition</name>
|
|
|
|
<index>10</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>instanceScale</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>11</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>rotPitchWtexX0</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>12</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>wtexY0FRtexx1FSRtexY1</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>13</index>
|
|
|
|
</attribute>
|
2019-09-25 20:56:22 +00:00
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>rtexX0RtexY0StexX1</name>
|
2019-09-25 20:56:22 +00:00
|
|
|
<index>14</index>
|
|
|
|
</attribute>
|
2019-10-08 20:39:40 +00:00
|
|
|
<attribute>
|
|
|
|
<name>rooftopscale</name>
|
|
|
|
<index>15</index>
|
|
|
|
</attribute>
|
2013-01-31 12:15:18 +00:00
|
|
|
</program>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2012-07-14 21:33:39 +00:00
|
|
|
|
2012-06-30 19:37:08 +00:00
|
|
|
<!-- Atmospheric scattering technique -->
|
|
|
|
<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>
|
2012-07-14 21:33:39 +00:00
|
|
|
|
2012-06-30 19:37:08 +00:00
|
|
|
<pass>
|
|
|
|
<lighting>true</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>
|
|
|
|
<alpha-test>false</alpha-test>
|
|
|
|
<shade-model>flat</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>-1</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<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>
|
2012-06-30 19:37:08 +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>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[0]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2019-08-20 16:02:27 +00:00
|
|
|
<texture-unit>
|
|
|
|
<unit>1</unit>
|
|
|
|
<image><use>texture[6]/image</use></image>
|
|
|
|
<type><use>texture[6]/type</use></type>
|
|
|
|
<filter><use>texture[6]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[6]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[6]/wrap-t</use></wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[6]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2012-06-30 19:37:08 +00:00
|
|
|
<program>
|
2013-01-30 08:04:27 +00:00
|
|
|
<!--<vertex-shader n="0">Shaders/include_fog.vert</vertex-shader>-->
|
|
|
|
<!--<vertex-shader n="1">Shaders/building-default.vert</vertex-shader>-->
|
|
|
|
<vertex-shader>Shaders/building-default.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/trivial.frag</fragment-shader>
|
|
|
|
<!--<fragment-shader n="0">Shaders/include_fog.frag</fragment-shader>
|
|
|
|
<fragment-shader n="1">Shaders/terrain-nocolor.frag</fragment-shader>-->
|
2019-08-20 16:02:27 +00:00
|
|
|
<attribute>
|
|
|
|
<name>instancePosition</name>
|
|
|
|
<index>10</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>instanceScale</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>11</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>rotPitchWtexX0</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>12</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>wtexY0FRtexx1FSRtexY1</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>13</index>
|
|
|
|
</attribute>
|
2019-09-25 20:56:22 +00:00
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>rtexX0RtexY0StexX1</name>
|
2019-09-25 20:56:22 +00:00
|
|
|
<index>14</index>
|
|
|
|
</attribute>
|
2019-10-08 20:39:40 +00:00
|
|
|
<attribute>
|
|
|
|
<name>rooftopscale</name>
|
|
|
|
<index>15</index>
|
|
|
|
</attribute>
|
2012-06-30 19:37:08 +00:00
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
2019-08-20 16:02:27 +00:00
|
|
|
<uniform>
|
|
|
|
<name>dataBuffer</name>
|
|
|
|
<type>sampler-1d</type>
|
|
|
|
<value type="int">1</value>
|
|
|
|
</uniform>
|
2012-06-30 19:37:08 +00:00
|
|
|
<color-mask type="vec4d">0 0 0 0</color-mask>
|
|
|
|
</pass>
|
|
|
|
<pass>
|
|
|
|
<lighting>true</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>false</alpha-test>
|
|
|
|
<shade-model>flat</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number><use>render-bin/bin-number</use></bin-number>
|
|
|
|
<bin-name><use>render-bin/bin-name</use></bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<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>
|
2012-06-30 19:37:08 +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>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[0]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2019-08-20 16:02:27 +00:00
|
|
|
<texture-unit>
|
|
|
|
<unit>1</unit>
|
|
|
|
<image><use>texture[6]/image</use></image>
|
|
|
|
<type><use>texture[6]/type</use></type>
|
|
|
|
<filter><use>texture[6]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[6]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[6]/wrap-t</use></wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[6]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2012-06-30 19:37:08 +00:00
|
|
|
<program>
|
2014-12-15 13:50:47 +00:00
|
|
|
<vertex-shader>Shaders/building-ALS.vert</vertex-shader>
|
2014-10-12 08:13:58 +00:00
|
|
|
<fragment-shader>Shaders/terrain-ALS-base.frag</fragment-shader>
|
2014-12-15 13:50:47 +00:00
|
|
|
<fragment-shader>Shaders/hazes.frag</fragment-shader>
|
2016-11-17 16:58:45 +00:00
|
|
|
<fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/noise.frag</fragment-shader>
|
2019-08-20 16:02:27 +00:00
|
|
|
<attribute>
|
|
|
|
<name>instancePosition</name>
|
|
|
|
<index>10</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>instanceScale</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>11</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>rotPitchWtexX0</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>12</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>wtexY0FRtexx1FSRtexY1</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>13</index>
|
|
|
|
</attribute>
|
2019-09-25 20:56:22 +00:00
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>rtexX0RtexY0StexX1</name>
|
2019-09-25 20:56:22 +00:00
|
|
|
<index>14</index>
|
|
|
|
</attribute>
|
2019-10-08 20:39:40 +00:00
|
|
|
<attribute>
|
|
|
|
<name>rooftopscale</name>
|
|
|
|
<index>15</index>
|
|
|
|
</attribute>
|
2012-06-30 19:37:08 +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>
|
|
|
|
<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>
|
2012-12-05 20:29:58 +00:00
|
|
|
<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>
|
2012-06-30 19:37:08 +00:00
|
|
|
<uniform>
|
|
|
|
<name>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
2019-08-20 16:02:27 +00:00
|
|
|
<uniform>
|
|
|
|
<name>dataBuffer</name>
|
|
|
|
<type>sampler-1d</type>
|
|
|
|
<value type="int">1</value>
|
|
|
|
</uniform>
|
2012-06-30 19:37:08 +00:00
|
|
|
<uniform>
|
|
|
|
<name>colorMode</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>2</value> <!-- AMBIENT_AND_DIFFUSE -->
|
|
|
|
</uniform>
|
|
|
|
<depth>
|
|
|
|
<function>lequal</function>
|
|
|
|
<write-mask type="bool">false</write-mask>
|
|
|
|
</depth>
|
|
|
|
</pass>
|
2012-07-14 21:33:39 +00:00
|
|
|
</technique>
|
2012-05-02 20:55:57 +00:00
|
|
|
|
2012-09-09 11:59:17 +00:00
|
|
|
<technique n="7">
|
2012-05-06 22:59:52 +00:00
|
|
|
<pass>
|
2015-03-29 11:47:58 +00:00
|
|
|
<material>
|
|
|
|
<active>true</active>
|
|
|
|
<color-mode-uniform>1</color-mode-uniform>
|
|
|
|
<ambient type="vec4d">0.6 0.6 0.6 1.0</ambient>
|
|
|
|
<diffuse type="vec4d">1.0 1.0 1.0 1.0</diffuse>
|
|
|
|
<specular type="vec4d">0.0 0.0 0.0 1.0</specular>
|
|
|
|
<emissive type="vec4d">0.02 0.02 0.02 1.0</emissive>
|
|
|
|
<shininess>0.1</shininess>
|
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
<color-mode-uniform>ambient-and-diffuse</color-mode-uniform>
|
|
|
|
</material>
|
2012-05-06 22:59:52 +00:00
|
|
|
<texture-unit n="4">
|
|
|
|
<unit>4</unit>
|
2019-08-20 16:02:27 +00:00
|
|
|
<image>
|
2012-05-06 22:59:52 +00:00
|
|
|
<use>texture[3]/image</use>
|
|
|
|
</image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>
|
|
|
|
<use>texture[3]/type</use>
|
|
|
|
</type>
|
2012-05-06 22:59:52 +00:00
|
|
|
<filter>
|
|
|
|
<use>texture[3]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[3]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[3]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[3]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2012-09-12 21:46:03 +00:00
|
|
|
<program n="0">
|
|
|
|
<vertex-shader n="0">Shaders/building-ubershader.vert</vertex-shader>
|
2019-08-20 16:02:27 +00:00
|
|
|
<attribute>
|
|
|
|
<name>instancePosition</name>
|
|
|
|
<index>10</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>instanceScale</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>11</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>rotPitchWtexX0</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>12</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>wtexY0FRtexx1FSRtexY1</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>13</index>
|
2019-09-25 20:56:22 +00:00
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>rtexX0RtexY0StexX1</name>
|
2019-09-25 20:56:22 +00:00
|
|
|
<index>14</index>
|
2019-10-08 20:39:40 +00:00
|
|
|
</attribute>
|
|
|
|
<attribute>
|
|
|
|
<name>rooftopscale</name>
|
|
|
|
<index>15</index>
|
2019-08-20 16:02:27 +00:00
|
|
|
</attribute>
|
2012-09-12 21:46:03 +00:00
|
|
|
</program>
|
2012-05-06 22:59:52 +00:00
|
|
|
</pass>
|
2012-05-01 21:36:24 +00:00
|
|
|
</technique>
|
2019-08-20 16:02:27 +00:00
|
|
|
|
2012-09-12 21:46:03 +00:00
|
|
|
<technique n="9">
|
|
|
|
<pass>
|
2015-03-29 11:47:58 +00:00
|
|
|
<material>
|
|
|
|
<active>true</active>
|
|
|
|
<color-mode-uniform>1</color-mode-uniform>
|
|
|
|
<ambient type="vec4d">0.6 0.6 0.6 1.0</ambient>
|
|
|
|
<diffuse type="vec4d">1.0 1.0 1.0 1.0</diffuse>
|
|
|
|
<specular type="vec4d">0.0 0.0 0.0 1.0</specular>
|
|
|
|
<emissive type="vec4d">0.02 0.02 0.02 1.0</emissive>
|
|
|
|
<shininess>0.1</shininess>
|
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
<color-mode-uniform>ambient-and-diffuse</color-mode-uniform>
|
|
|
|
</material>
|
2012-09-12 21:46:03 +00:00
|
|
|
<texture-unit n="4">
|
|
|
|
<unit>4</unit>
|
2019-08-20 16:02:27 +00:00
|
|
|
<image>
|
2012-09-12 21:46:03 +00:00
|
|
|
<use>texture[3]/image</use>
|
|
|
|
</image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>
|
|
|
|
<use>texture[3]/type</use>
|
|
|
|
</type>
|
2012-09-12 21:46:03 +00:00
|
|
|
<filter>
|
|
|
|
<use>texture[3]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[3]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[3]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[3]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<program n="0">
|
2015-03-29 11:47:58 +00:00
|
|
|
<vertex-shader n="0">Shaders/building-ubershader.vert</vertex-shader>
|
2019-08-20 16:02:27 +00:00
|
|
|
<attribute>
|
|
|
|
<name>instancePosition</name>
|
|
|
|
<index>10</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>instanceScale</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>11</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>rotPitchWtexX0</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>12</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>wtexY0FRtexx1FSRtexY1</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>13</index>
|
2019-09-25 20:56:22 +00:00
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>rtexX0RtexY0StexX1</name>
|
2019-09-25 20:56:22 +00:00
|
|
|
<index>14</index>
|
2019-10-08 20:39:40 +00:00
|
|
|
</attribute>
|
|
|
|
<attribute>
|
|
|
|
<name>rooftopscale</name>
|
|
|
|
<index>15</index>
|
2019-08-20 16:02:27 +00:00
|
|
|
</attribute>
|
2012-09-12 21:46:03 +00:00
|
|
|
</program>
|
|
|
|
</pass>
|
2019-08-20 16:02:27 +00:00
|
|
|
</technique>
|
2012-09-12 21:46:03 +00:00
|
|
|
|
|
|
|
<technique n="12">
|
|
|
|
<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>off</color-mode>
|
|
|
|
</material>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>2</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<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>
|
2019-08-20 16:02:27 +00:00
|
|
|
<texture-unit>
|
|
|
|
<unit>1</unit>
|
|
|
|
<image><use>texture[6]/image</use></image>
|
|
|
|
<type><use>texture[6]/type</use></type>
|
|
|
|
<filter><use>texture[6]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[6]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[6]/wrap-t</use></wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[6]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2012-09-12 21:46:03 +00:00
|
|
|
<vertex-program-two-side>
|
|
|
|
<use>vertex-program-two-side</use>
|
|
|
|
</vertex-program-two-side>
|
|
|
|
<program>
|
2015-03-29 11:47:58 +00:00
|
|
|
<vertex-shader n="0">Shaders/building-default.vert</vertex-shader>
|
2012-09-12 21:46:03 +00:00
|
|
|
<fragment-shader n="0">Shaders/include_fog.frag</fragment-shader>
|
|
|
|
<!--fog include-->
|
|
|
|
<fragment-shader n="1">Shaders/default.frag</fragment-shader>
|
2019-08-20 16:02:27 +00:00
|
|
|
<attribute>
|
|
|
|
<name>instancePosition</name>
|
|
|
|
<index>10</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>instanceScale</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>11</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>rotPitchWtexX0</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>12</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>wtexY0FRtexx1FSRtexY1</name>
|
2019-08-20 16:02:27 +00:00
|
|
|
<index>13</index>
|
|
|
|
</attribute>
|
2019-09-25 20:56:22 +00:00
|
|
|
<attribute>
|
2019-11-23 17:08:04 +00:00
|
|
|
<name>rtexX0RtexY0StexX1</name>
|
2019-09-25 20:56:22 +00:00
|
|
|
<index>14</index>
|
2019-10-08 20:39:40 +00:00
|
|
|
</attribute>
|
|
|
|
<attribute>
|
|
|
|
<name>rooftopscale</name>
|
|
|
|
<index>15</index>
|
2019-09-25 20:56:22 +00:00
|
|
|
</attribute>
|
2012-09-12 21:46:03 +00:00
|
|
|
</program>
|
|
|
|
<!-- BEGIN fog include -->
|
2015-03-29 11:47:58 +00:00
|
|
|
<!--<uniform>
|
2012-09-12 21:46:03 +00:00
|
|
|
<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>
|
2015-03-29 11:47:58 +00:00
|
|
|
</uniform>-->
|
2012-09-12 21:46:03 +00:00
|
|
|
<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>
|
2019-08-20 16:02:27 +00:00
|
|
|
<uniform>
|
|
|
|
<name>dataBuffer</name>
|
|
|
|
<type>sampler-1d</type>
|
|
|
|
<value type="int">1</value>
|
|
|
|
</uniform>
|
2012-09-12 21:46:03 +00:00
|
|
|
<uniform>
|
|
|
|
<name>colorMode</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>material/color-mode-uniform</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
</pass>
|
2019-08-20 16:02:27 +00:00
|
|
|
</technique>
|
2012-09-12 21:46:03 +00:00
|
|
|
|
2012-06-30 19:37:08 +00:00
|
|
|
</PropertyList>
|