]> git.mxchange.org Git - flightgear.git/commitdiff
Synchronize doc
authorfredb <fredb>
Sat, 10 Apr 2010 14:17:30 +0000 (14:17 +0000)
committerTim Moore <timoore33@gmail.com>
Mon, 12 Apr 2010 08:03:00 +0000 (10:03 +0200)
docs-mini/README.effects

index 550163f29d9de3c4fa2eddf70c9f8b581e3964a8..c46d392c2466044511c90a1b266764d1b43ec06a 100644 (file)
@@ -35,6 +35,7 @@ and, or, equal, less, less-equal
 glversion - returns the version number of OpenGL
 extension-supported - returns true if an OpenGL extension is supported
 property - returns the boolean value of a property
+float-property - returns the float value of a property, useful inside equal, less or less-equal nodes
 shader-language - returns the version of GLSL supported, or 0 if there is none.
 
 The proper way to test whether to enable a shader-based technique is:
@@ -48,6 +49,23 @@ The proper way to test whether to enable a shader-based technique is:
          </and>
        </predicate>
 
+There is also a property set by the user to indicate what is the level 
+of quality desired. This level of quality can be checked in the predicate
+like this :
+    <predicate>
+      <and>
+        <property>/sim/rendering/shader-effects</property>
+       <less-equal>
+         <value type="float">2.0</value>
+         <float-property>/sim/rendering/quality-level</float-property>
+       </less-equal>
+       <!-- other predicate conditions -->
+      </and>
+    </predicate>
+    
+The range of /sim/rendering/quality-level is [0..5]
+ * 2.0 is the threshold for relief mapping effects,
+ * 4.0 is the threshold for geometry shader usage.
 
 A technique can consist of several passes. A pass is basically an Open
 Scene Graph StateSet. Ultimately all OpenGL and OSG modes and state