Simplify building.eff, fix lack of orthoTexCoord
This commit is contained in:
parent
bde07c8862
commit
4db5d00c16
1 changed files with 151 additions and 380 deletions
|
@ -1,417 +1,188 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<PropertyList>
|
<PropertyList>
|
||||||
<name>Effects/building</name>
|
<name>Effects/building</name>
|
||||||
<inherits-from>Effects/model-combined-deferred</inherits-from>
|
<inherits-from>Effects/model-combined</inherits-from>
|
||||||
<parameters>
|
<parameters>
|
||||||
<texture n="0">
|
<texture n="0">
|
||||||
<type>2d</type>
|
<type>2d</type>
|
||||||
<image>Textures/buildings.png</image>
|
<image>Textures/buildings.png</image>
|
||||||
<filter>linear-mipmap-linear</filter>
|
<filter>linear-mipmap-linear</filter>
|
||||||
<wrap-s>repeat</wrap-s>
|
<wrap-s>repeat</wrap-s>
|
||||||
<wrap-t>clamp</wrap-t>
|
<wrap-t>clamp</wrap-t>
|
||||||
<internal-format>normalized</internal-format>
|
<internal-format>normalized</internal-format>
|
||||||
</texture>
|
</texture>
|
||||||
<!-- Normal Map -->
|
<!-- Normal Map -->
|
||||||
<normalmap-enabled type="int"> 1 </normalmap-enabled>
|
<normalmap-enabled type="int"> 1 </normalmap-enabled>
|
||||||
<normalmap-dds type="int"> 0 </normalmap-dds>
|
<normalmap-dds type="int"> 0 </normalmap-dds>
|
||||||
<normalmap-tiling type="float"> 1.0 </normalmap-tiling>
|
<normalmap-tiling type="float"> 1.0 </normalmap-tiling>
|
||||||
<texture n="2">
|
<texture n="2">
|
||||||
<image>Textures/buildings-normalmap_orig.png</image>
|
<image>Textures/buildings-normalmap_orig.png</image>
|
||||||
<type>2d</type>
|
<type>2d</type>
|
||||||
<filter>linear-mipmap-linear</filter>
|
<filter>linear-mipmap-linear</filter>
|
||||||
<wrap-s>repeat</wrap-s>
|
<wrap-s>repeat</wrap-s>
|
||||||
<wrap-t>clamp</wrap-t>
|
<wrap-t>clamp</wrap-t>
|
||||||
<internal-format>normalized</internal-format>
|
<internal-format>normalized</internal-format>
|
||||||
</texture>
|
</texture>
|
||||||
<!-- Light Map -->
|
<!-- Light Map -->
|
||||||
<texture n="3">
|
<texture n="3">
|
||||||
<image>Textures/buildings-lightmap.png</image>
|
<image>Textures/buildings-lightmap.png</image>
|
||||||
<type>2d</type>
|
<type>2d</type>
|
||||||
<filter>linear-mipmap-linear</filter>
|
<filter>linear-mipmap-linear</filter>
|
||||||
<wrap-s>clamp</wrap-s>
|
<wrap-s>clamp</wrap-s>
|
||||||
<wrap-t>clamp</wrap-t>
|
<wrap-t>clamp</wrap-t>
|
||||||
<internal-format>normalized</internal-format>
|
<internal-format>normalized</internal-format>
|
||||||
</texture>
|
</texture>
|
||||||
<lightmap-enabled type="int"> 1 </lightmap-enabled>
|
<lightmap-enabled type="int"> 1 </lightmap-enabled>
|
||||||
<lightmap-multi type="int"> 0 </lightmap-multi>
|
<lightmap-multi type="int"> 0 </lightmap-multi>
|
||||||
<lightmap-factor type="float" n="0">
|
<lightmap-factor type="float" n="0">
|
||||||
<use>/sim/time/sun-angle-rad</use>
|
<use>/sim/time/sun-angle-rad</use>
|
||||||
</lightmap-factor>
|
</lightmap-factor>
|
||||||
<lightmap-color type="vec3d" n="0"> 0.3 0.3 0.3 </lightmap-color>
|
<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>
|
<!-- Reflection -->
|
||||||
<lightmap-factor type="float" n="2">1.0</lightmap-factor>
|
<reflection-enabled type="int"> 1 </reflection-enabled>
|
||||||
<lightmap-color type="vec3d" n="2"> 1.0 1.0 1.0 </lightmap-color>
|
<reflect-map-enabled type="int"> 1 </reflect-map-enabled>
|
||||||
<lightmap-factor type="float" n="3">1.0</lightmap-factor>
|
<reflection-correction type="float"> -0.15 </reflection-correction>
|
||||||
<lightmap-color type="vec3d" n="3"> 1.0 1.0 1.0 </lightmap-color>-->
|
<reflection-dynamic type="int"> 0 </reflection-dynamic>
|
||||||
<!-- Reflection -->
|
<reflection-fresnel type="float"> 0.0 </reflection-fresnel>
|
||||||
<reflection-enabled type="int"> 1 </reflection-enabled>
|
<reflection-rainbow type="float"> 0.0 </reflection-rainbow>
|
||||||
<reflect-map-enabled type="int"> 1 </reflect-map-enabled>
|
<reflection-noise type="float"> 0.0 </reflection-noise>
|
||||||
<reflection-correction type="float"> -0.15 </reflection-correction>
|
<texture n= "5" >
|
||||||
<reflection-dynamic type="int"> 0 </reflection-dynamic>
|
<type>cubemap</type>
|
||||||
<reflection-fresnel type="float"> 0.0 </reflection-fresnel>
|
<images>
|
||||||
<reflection-rainbow type="float"> 0.0 </reflection-rainbow>
|
<positive-x>Aircraft/Generic/Effects/CubeMaps/buildings/N.png</positive-x>
|
||||||
<reflection-noise type="float"> 0.0 </reflection-noise>
|
<negative-x>Aircraft/Generic/Effects/CubeMaps/buildings/S.png</negative-x>
|
||||||
<texture n= "5" >
|
<positive-y>Aircraft/Generic/Effects/CubeMaps/buildings/W.png</positive-y>
|
||||||
<type>cubemap</type>
|
<negative-y>Aircraft/Generic/Effects/CubeMaps/buildings/E.png</negative-y>
|
||||||
<images>
|
<positive-z>Aircraft/Generic/Effects/CubeMaps/buildings/U.png</positive-z>
|
||||||
<positive-x>Aircraft/Generic/Effects/CubeMaps/buildings/N.png</positive-x>
|
<negative-z>Aircraft/Generic/Effects/CubeMaps/buildings/D.png</negative-z>
|
||||||
<negative-x>Aircraft/Generic/Effects/CubeMaps/buildings/S.png</negative-x>
|
</images>
|
||||||
<positive-y>Aircraft/Generic/Effects/CubeMaps/buildings/W.png</positive-y>
|
</texture>
|
||||||
<negative-y>Aircraft/Generic/Effects/CubeMaps/buildings/E.png</negative-y>
|
<texture n="6">
|
||||||
<positive-z>Aircraft/Generic/Effects/CubeMaps/buildings/U.png</positive-z>
|
<!-- instance information from shader -->
|
||||||
<negative-z>Aircraft/Generic/Effects/CubeMaps/buildings/D.png</negative-z>
|
<type>2d</type>
|
||||||
</images>
|
<wrap-s>clamp</wrap-s>
|
||||||
</texture>
|
<wrap-t>clamp</wrap-t>
|
||||||
<texture n="6">
|
</texture>
|
||||||
<!-- instance information from shader -->
|
<!-- Add the following line to enable snow: -->
|
||||||
<type>2d</type>
|
<snow-enabled>1</snow-enabled>
|
||||||
<wrap-s>clamp</wrap-s>
|
<!--Ambient correction -->
|
||||||
<wrap-t>clamp</wrap-t>
|
<ambient-correction type="float"> 0.0 </ambient-correction>
|
||||||
</texture>
|
<material>
|
||||||
<!-- Add the following line to enable snow: -->
|
<active>true</active>
|
||||||
<snow-enabled>1</snow-enabled>
|
<color-mode-uniform>1</color-mode-uniform>
|
||||||
<!--Ambient correction -->
|
<ambient type="vec4d">0.6 0.6 0.6 1.0</ambient>
|
||||||
<ambient-correction type="float"> 0.0 </ambient-correction>
|
<diffuse type="vec4d">1.0 1.0 1.0 1.0</diffuse>
|
||||||
<dirt-enabled type="int"> 0 </dirt-enabled>
|
<specular type="vec4d">0.0 0.0 0.0 1.0</specular>
|
||||||
<dirt-color type="vec3d"> 0.0 0.0 0.0 </dirt-color>
|
<emissive type="vec4d">0.02 0.02 0.02 1.0</emissive>
|
||||||
<dirt-factor type="float"> 0.0 </dirt-factor>
|
<shininess>0.1</shininess>
|
||||||
<material>
|
<color-mode>ambient-and-diffuse</color-mode>
|
||||||
<active>true</active>
|
<color-mode-uniform>ambient-and-diffuse</color-mode-uniform>
|
||||||
<color-mode-uniform>1</color-mode-uniform>
|
<!-- DIFFUSE -->
|
||||||
<ambient type="vec4d">0.6 0.6 0.6 1.0</ambient>
|
</material>
|
||||||
<diffuse type="vec4d">1.0 1.0 1.0 1.0</diffuse>
|
<material-id>0</material-id>
|
||||||
<specular type="vec4d">0.0 0.0 0.0 1.0</specular>
|
<blend>
|
||||||
<emissive type="vec4d">0.02 0.02 0.02 1.0</emissive>
|
<active>0</active>
|
||||||
<shininess>0.1</shininess>
|
<source>0</source>
|
||||||
<color-mode>ambient-and-diffuse</color-mode>
|
<destination>0</destination>
|
||||||
<color-mode-uniform>ambient-and-diffuse</color-mode-uniform>
|
</blend>
|
||||||
<!-- DIFFUSE -->
|
<shade-model>flat</shade-model>
|
||||||
</material>
|
<cull-face>back</cull-face>
|
||||||
<material-id>0</material-id>
|
|
||||||
<blend>
|
|
||||||
<active>0</active>
|
|
||||||
<source>0</source>
|
|
||||||
<destination>0</destination>
|
|
||||||
</blend>
|
|
||||||
<shade-model>flat</shade-model>
|
|
||||||
<cull-face>back</cull-face>
|
|
||||||
<rendering-hint>opaque</rendering-hint>
|
|
||||||
<!-- 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>
|
|
||||||
<overcast><use>/rendering/scene/overcast</use></overcast>
|
|
||||||
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
|
|
||||||
<snow_level><use>/environment/snow-level-m</use></snow_level>
|
|
||||||
<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>
|
|
||||||
<delta_T><use>/environment/surface/delta-T-structure</use></delta_T>
|
|
||||||
<!-- END fog include -->
|
|
||||||
<building-flag type="int">1</building-flag>
|
<building-flag type="int">1</building-flag>
|
||||||
</parameters>
|
</parameters>
|
||||||
|
|
||||||
<technique n="4">
|
<technique n="4">
|
||||||
<!-- Atmospheric scattering technique with model shader-->
|
<!-- Atmospheric scattering technique with model shader-->
|
||||||
<predicate>
|
<pass>
|
||||||
<and>
|
<texture-unit n="4">
|
||||||
<property>/sim/rendering/shaders/skydome</property>
|
<unit>4</unit>
|
||||||
<property>/sim/rendering/shaders/model</property>
|
<image>
|
||||||
<or>
|
<use>texture[3]/image</use>
|
||||||
<less-equal>
|
</image>
|
||||||
<value type="float">2.0</value>
|
<type>
|
||||||
<glversion/>
|
<use>texture[3]/type</use>
|
||||||
</less-equal>
|
</type>
|
||||||
<and>
|
<filter>
|
||||||
<extension-supported>GL_ARB_shader_objects</extension-supported>
|
<use>texture[3]/filter</use>
|
||||||
<extension-supported>GL_ARB_shading_language_100</extension-supported>
|
</filter>
|
||||||
<extension-supported>GL_ARB_vertex_shader</extension-supported>
|
<wrap-s>
|
||||||
<extension-supported>GL_ARB_fragment_shader</extension-supported>
|
<use>texture[3]/wrap-s</use>
|
||||||
</and>
|
</wrap-s>
|
||||||
</or>
|
<wrap-t>
|
||||||
</and>
|
<use>texture[3]/wrap-t</use>
|
||||||
</predicate>
|
</wrap-t>
|
||||||
|
<internal-format>
|
||||||
<pass>
|
<use>texture[3]/internal-format</use>
|
||||||
<texture-unit n="4">
|
</internal-format>
|
||||||
<unit>4</unit>
|
</texture-unit>
|
||||||
<image>
|
<program>
|
||||||
<use>texture[3]/image</use>
|
<vertex-shader n="0">Shaders/building-model-ALS-ultra.vert</vertex-shader>
|
||||||
</image>
|
<attribute>
|
||||||
<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>
|
|
||||||
<program>
|
|
||||||
<vertex-shader n="0">Shaders/building-model-ALS-ultra.vert</vertex-shader>
|
|
||||||
<attribute>
|
|
||||||
<name>instancePosition</name>
|
|
||||||
<index>10</index>
|
|
||||||
</attribute>
|
|
||||||
<attribute>
|
|
||||||
<name>instanceScale</name>
|
|
||||||
<index>11</index>
|
|
||||||
</attribute>
|
|
||||||
<attribute>
|
|
||||||
<name>attrib1</name>
|
|
||||||
<index>12</index>
|
|
||||||
</attribute>
|
|
||||||
<attribute>
|
|
||||||
<name>attrib2</name>
|
|
||||||
<index>13</index>
|
|
||||||
</attribute>
|
|
||||||
</program>
|
|
||||||
</pass>
|
|
||||||
</technique>
|
|
||||||
|
|
||||||
<technique n="5">
|
|
||||||
<!-- Base Atmospheric scattering technique -->
|
|
||||||
<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>
|
|
||||||
<program>
|
|
||||||
<vertex-shader>Shaders/building-ALS.vert</vertex-shader>
|
|
||||||
<vertex-shader>Shaders/shadows-include.vert</vertex-shader>
|
|
||||||
<fragment-shader>Shaders/terrain-ALS-base.frag</fragment-shader>
|
|
||||||
<fragment-shader>Shaders/hazes.frag</fragment-shader>
|
|
||||||
<fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
|
|
||||||
<fragment-shader>Shaders/noise.frag</fragment-shader>
|
|
||||||
<fragment-shader>Shaders/shadows-include.frag</fragment-shader>
|
|
||||||
<fragment-shader>Shaders/clustered-include.frag</fragment-shader>
|
|
||||||
<attribute>
|
|
||||||
<name>instancePosition</name>
|
<name>instancePosition</name>
|
||||||
<index>10</index>
|
<index>10</index>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute>
|
<attribute>
|
||||||
<name>instanceScale</name>
|
<name>instanceScale</name>
|
||||||
<index>11</index>
|
<index>11</index>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute>
|
<attribute>
|
||||||
<name>attrib1</name>
|
<name>attrib1</name>
|
||||||
<index>12</index>
|
<index>12</index>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute>
|
<attribute>
|
||||||
<name>attrib2</name>
|
<name>attrib2</name>
|
||||||
<index>13</index>
|
<index>13</index>
|
||||||
</attribute>
|
</attribute>
|
||||||
</program>
|
|
||||||
</pass>
|
|
||||||
</technique>
|
|
||||||
|
|
||||||
<technique n="11">
|
|
||||||
<pass>
|
|
||||||
<vertex-program-two-side>
|
|
||||||
<use>vertex-program-two-side</use>
|
|
||||||
</vertex-program-two-side>
|
|
||||||
<program n="0">
|
|
||||||
<vertex-shader n="1">Shaders/building-default.vert</vertex-shader>
|
|
||||||
<vertex-shader n="2">Shaders/shadows-include.vert</vertex-shader>
|
|
||||||
<fragment-shader n="0">Shaders/include_fog.frag</fragment-shader>
|
|
||||||
<!--fog include-->
|
|
||||||
<fragment-shader n="1">Shaders/default.frag</fragment-shader>
|
|
||||||
<fragment-shader n="2">Shaders/shadows-include.frag</fragment-shader>
|
|
||||||
<fragment-shader n="3">Shaders/clustered-include.frag</fragment-shader>
|
|
||||||
<attribute>
|
|
||||||
<name>instancePosition</name>
|
|
||||||
<index>10</index>
|
|
||||||
</attribute>
|
|
||||||
<attribute>
|
|
||||||
<name>instanceScale</name>
|
|
||||||
<index>11</index>
|
|
||||||
</attribute>
|
|
||||||
<attribute>
|
|
||||||
<name>attrib1</name>
|
|
||||||
<index>12</index>
|
|
||||||
</attribute>
|
|
||||||
<attribute>
|
|
||||||
<name>attrib2</name>
|
|
||||||
<index>13</index>
|
|
||||||
</attribute>
|
|
||||||
</program>
|
</program>
|
||||||
</pass>
|
</pass>
|
||||||
</technique>
|
</technique>
|
||||||
|
|
||||||
<technique n="12">
|
<technique n="5">
|
||||||
|
<!-- Base Atmospheric scattering technique -->
|
||||||
<pass>
|
<pass>
|
||||||
<lighting>true</lighting>
|
<program>
|
||||||
<material>
|
<vertex-shader n="0">Shaders/building-ALS.vert</vertex-shader>
|
||||||
<active>
|
<attribute>
|
||||||
<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>
|
|
||||||
<vertex-program-two-side>
|
|
||||||
<use>vertex-program-two-side</use>
|
|
||||||
</vertex-program-two-side>
|
|
||||||
<program n="0">
|
|
||||||
<vertex-shader n="0">Shaders/building-default.vert</vertex-shader>
|
|
||||||
<vertex-shader n="1">Shaders/shadows-include.vert</vertex-shader>
|
|
||||||
<fragment-shader n="0">Shaders/include_fog.frag</fragment-shader>
|
|
||||||
<!--fog include-->
|
|
||||||
<fragment-shader n="1">Shaders/default.frag</fragment-shader>
|
|
||||||
<fragment-shader n="2">Shaders/shadows-include.frag</fragment-shader>
|
|
||||||
<fragment-shader n="3">Shaders/clustered-include.frag</fragment-shader>
|
|
||||||
<attribute>
|
|
||||||
<name>instancePosition</name>
|
<name>instancePosition</name>
|
||||||
<index>10</index>
|
<index>10</index>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute>
|
<attribute>
|
||||||
<name>instanceScale</name>
|
<name>instanceScale</name>
|
||||||
<index>11</index>
|
<index>11</index>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute>
|
<attribute>
|
||||||
<name>attrib1</name>
|
<name>attrib1</name>
|
||||||
<index>12</index>
|
<index>12</index>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute>
|
<attribute>
|
||||||
|
<name>attrib2</name>
|
||||||
|
<index>13</index>
|
||||||
|
</attribute>
|
||||||
|
</program>
|
||||||
|
</pass>
|
||||||
|
</technique>
|
||||||
|
|
||||||
|
<technique n="11">
|
||||||
|
<pass>
|
||||||
|
<program n="0">
|
||||||
|
<vertex-shader n="1">Shaders/building-default.vert</vertex-shader>
|
||||||
|
<attribute>
|
||||||
|
<name>instancePosition</name>
|
||||||
|
<index>10</index>
|
||||||
|
</attribute>
|
||||||
|
<attribute>
|
||||||
|
<name>instanceScale</name>
|
||||||
|
<index>11</index>
|
||||||
|
</attribute>
|
||||||
|
<attribute>
|
||||||
|
<name>attrib1</name>
|
||||||
|
<index>12</index>
|
||||||
|
</attribute>
|
||||||
|
<attribute>
|
||||||
<name>attrib2</name>
|
<name>attrib2</name>
|
||||||
<index>13</index>
|
<index>13</index>
|
||||||
</attribute>
|
</attribute>
|
||||||
</program>
|
</program>
|
||||||
<uniform>
|
|
||||||
<name>fogType</name>
|
|
||||||
<type>int</type>
|
|
||||||
<value>
|
|
||||||
<use>fogtype</use>
|
|
||||||
</value>
|
|
||||||
</uniform>
|
|
||||||
<uniform>
|
|
||||||
<name>texture</name>
|
|
||||||
<type>sampler-2d</type>
|
|
||||||
<value type="int">0</value>
|
|
||||||
</uniform>
|
|
||||||
<uniform>
|
|
||||||
<name>dataBuffer</name>
|
|
||||||
<type>sampler-1d</type>
|
|
||||||
<value type="int">1</value>
|
|
||||||
</uniform>
|
|
||||||
<uniform>
|
|
||||||
<name>colorMode</name>
|
|
||||||
<type>int</type>
|
|
||||||
<value>
|
|
||||||
<use>material/color-mode-uniform</use>
|
|
||||||
</value>
|
|
||||||
</uniform>
|
|
||||||
<!-- 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 -->
|
|
||||||
</pass>
|
</pass>
|
||||||
</technique>
|
</technique>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue