1
0
Fork 0

Toggle effects use with property

This commit is contained in:
timoore 2009-07-15 22:49:53 +00:00
parent 7a202515e8
commit 6a5ad11aa7
2 changed files with 17 additions and 5 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>default-effect</name>
<name>Effects/terrain-default</name>
<!-- <inherits-from>another-effect</inherits-from> -->
<parameters>
<material>
@ -40,10 +40,21 @@
</parameters>
<technique>
<predicate>
<less-equal>
<value type="float">2.0</value>
<glversion/>
</less-equal>
<and>
<property>/sim/rendering/shader-effects</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>

View file

@ -112,6 +112,7 @@ Started September 2000 by David Megginson, david@megginson.com
<enabled type="bool" userarchive="y">true</enabled>
<debug type="bool" userarchive="y">false</debug>
</shadows>
<shader-effects type="bool" userarchive="y">true</shader-effects>
<fps-display type="bool" userarchive="y">false</fps-display>
<on-screen-statistics type="int">0</on-screen-statistics>
<glide-slope-tunnel type="bool" userarchive="y">false</glide-slope-tunnel>