Pass FX Composer 2 extension

From COLLADA Public Wiki
Jump to: navigation, search
Extension information
  • Purpose: unstated
  • Company(s): NVIDIA
  • Product(s): FX Composer 2
  • Last updated: unstated
  • Contact for technical issues:
This article is part of the COLLADA extensions directory
Adding to the extensions directory

ColladaFX Enabling/Disabling Shader Passes

FXComposer 2.0 added an extra at the pass level to enable or disable passes.

See example below.

Example

<pass sid="p0">
   <annotate name="Script">
       <string>Draw=geometry;</string>
   </annotate>
   <depth_test_enable value="true"/>
   <depth_mask/>
   <cull_face_enable/>
   <depth_func value="LEQUAL"/>
   <shader stage="VERTEX">
       […]
   </shader>
   <shader stage="FRAGMENT">
       […]
   </shader>
   <extra type="passenable">
       <technique profile="NVIDIA_FXCOMPOSER">
           <true/>
       </technique>
   </extra>
</pass>