Difference between revisions of "Effect FX Composer 2 extension"

From COLLADA Public Wiki
Jump to: navigation, search
 
(Custom HLSL and CGFX Profiles for FX Composer: a little copy editing)
Line 2: Line 2:
  
 
== Custom HLSL and CGFX Profiles for FX Composer ==
 
== Custom HLSL and CGFX Profiles for FX Composer ==
This extra at the effect level is used to define an effect with a direct reference to an external .fx of .cgfx file.  
+
This <extra> at the <effect> level defines an effect with a direct reference to an external <code>.fx or .cgfx</code> file.  
It also includes compiler options for the specified effect file and can appear more than one time in the case multiple profiles.
+
It also includes compiler options for the specified effect file and can appear more than one time in the case of multiple profiles.
  
 
{| border=1 cellspacing=0 cellpadding=3 align=center
 
{| border=1 cellspacing=0 cellpadding=3 align=center

Revision as of 04:23, 16 June 2007

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

Custom HLSL and CGFX Profiles for FX Composer

This <extra> at the <effect> level defines an effect with a direct reference to an external .fx or .cgfx file. It also includes compiler options for the specified effect file and can appear more than one time in the case of multiple profiles.

Attribute Description
url The url of the effect file to import.
compiler_options Compiler options for the specified file
profile The name of the profile (fx or cgfx)

Example

<effect id="Effect1" name="Gooch">
   <profile_COMMON>
       <technique sid="__fxc2_default">
           <constant/>
       </technique>
   </profile_COMMON>
   <extra type="import">
       <technique profile="NV_import">
           <import url="../Projects/Gooch.cgfx" compiler_options="" profile="cgfx"/>
       </technique>
   </extra>
</effect>