2009-07-15 22:49:16 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
2009-07-15 22:49:53 +00:00
|
|
|
<name>Effects/terrain-default</name>
|
2009-07-15 22:49:16 +00:00
|
|
|
<!-- <inherits-from>another-effect</inherits-from> -->
|
|
|
|
<parameters>
|
|
|
|
<material>
|
|
|
|
<ambient type="vec4d">
|
|
|
|
0.2 .2 0.2 1.0
|
|
|
|
</ambient>
|
|
|
|
<diffuse type="vec4d">
|
|
|
|
.8 .8 .8 1.0
|
|
|
|
</diffuse>
|
|
|
|
<specular type="vec4d">
|
|
|
|
0.0 0.0 0.0 1.0
|
|
|
|
</specular>
|
|
|
|
<emissive type="vec4d">
|
|
|
|
0.0 0.0 0.0 1.0
|
|
|
|
</emissive>
|
|
|
|
<shininess>1.2</shininess>
|
|
|
|
</material>
|
2009-07-15 22:49:44 +00:00
|
|
|
<texture n="0">
|
|
|
|
<image>Textures/Terrain/unknown.png</image>
|
2009-07-15 22:49:16 +00:00
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<!-- also repeat -->
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<!--
|
|
|
|
<wrap-r>clamp-to-border</wrap-r>
|
|
|
|
-->
|
|
|
|
<!-- float, signed-integer, integer -->
|
|
|
|
<internal-format>normalized</internal-format>
|
2009-07-15 22:49:44 +00:00
|
|
|
</texture>
|
2009-07-15 22:49:16 +00:00
|
|
|
<transparent>false</transparent>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>0</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
</parameters>
|
2009-08-08 10:17:58 +00:00
|
|
|
<!-- put techniques at a "high" index to allow derived effects to
|
|
|
|
insert their own techniques first. -->
|
|
|
|
<technique n="10">
|
2009-07-15 22:49:36 +00:00
|
|
|
<predicate>
|
2009-07-15 22:49:53 +00:00
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shader-effects</property>
|
2009-11-16 07:24:32 +00:00
|
|
|
|
2009-07-15 22:49:53 +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>
|
2009-07-15 22:49:36 +00:00
|
|
|
</predicate>
|
|
|
|
<pass>
|
|
|
|
<lighting>true</lighting>
|
|
|
|
<material>
|
|
|
|
<ambient><use>material/ambient</use></ambient>
|
|
|
|
<diffuse><use>material/diffuse</use></diffuse>
|
|
|
|
<specular><use>material/specular</use></specular>
|
2009-11-16 07:24:32 +00:00
|
|
|
<emissive><use>material/emissive</use></emissive>
|
|
|
|
<shininess><use>material/shininess</use></shininess>
|
2009-07-15 22:49:36 +00:00
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
</material>
|
|
|
|
<blend><use>transparent</use></blend>
|
|
|
|
<alpha-test><use>transparent</use></alpha-test>
|
|
|
|
<shade-model>smooth</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>
|
2009-08-08 10:17:58 +00:00
|
|
|
<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-07-15 22:49:36 +00:00
|
|
|
<internal-format>
|
2009-08-08 10:17:58 +00:00
|
|
|
<use>texture[0]/internal-format</use>
|
2009-07-15 22:49:36 +00:00
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/default.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/default.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value></uniform>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2009-08-08 10:17:58 +00:00
|
|
|
<technique n="11">
|
2009-07-15 22:49:16 +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>
|
2009-11-16 07:24:32 +00:00
|
|
|
<emissive><use>material/emissive</use></emissive>
|
|
|
|
<shininess><use>material/shininess</use></shininess>
|
2009-07-15 22:49:16 +00:00
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
</material>
|
|
|
|
<blend><use>transparent</use></blend>
|
|
|
|
<alpha-test><use>transparent</use></alpha-test>
|
|
|
|
<shade-model>smooth</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>
|
2009-08-08 10:17:58 +00:00
|
|
|
<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-07-15 22:49:16 +00:00
|
|
|
<internal-format>
|
2009-08-08 10:17:58 +00:00
|
|
|
<use>texture[0]/internal-format</use>
|
2009-07-15 22:49:16 +00:00
|
|
|
</internal-format>
|
|
|
|
<environment>
|
|
|
|
<mode>modulate</mode>
|
|
|
|
</environment>
|
|
|
|
</texture-unit>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
</PropertyList>
|