Material FX Composer 2 extension

From COLLADA Public Wiki
Jump to navigation Jump to 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

Scene Bindings

FX Composer 2.0 allows binding of lights, cameras and node properties to materials. The internal mechanism automatically binds scene item parameters such as light position, color, direction, transformation to material parameters. To store these bindings in Collada files, FX Composer 2.0 uses an extra at the material level (material).

<bind_object> Attributes Description
object The name of the binding connection at the material level. Binding connections are defined in shader parameter annotations
target The target node
sid The sid of the instance object to bind to


<material id="Material" name="New_Effect_Material">
   <instance_effect url="#Effect">
   <extra type="bind_object">
       <technique profile="NVIDIA_FXCOMPOSER">
           <bind_object object="pointlight0" target="#Node2" sid="FXLightInstance"/>