Effect framework: Difference between revisions

Line 117: Line 117:
===predicate===
===predicate===
Condition for this technique to be used. If this fails it will try the next technique in the effect.
Condition for this technique to be used. If this fails it will try the next technique in the effect.
Example:
<predicate>
<and>
  <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===
===pass===
574

edits