Difference between revisions of "Effect FX Composer 2 extension"

From COLLADA Public Wiki
Jump to: navigation, search
m (None)
(Undo revision 7092 by LLutz74 (talk))
 
Line 1: Line 1:
 
{{extension|company=NVIDIA|product=FX Composer 2}}
 
{{extension|company=NVIDIA|product=FX Composer 2}}
  
==<import> Element==
+
==<import> Element==
'''Category:''' &lt;!-- fill in  --> (See [[list of specification categories]])
+
'''Category:''' <!-- fill in  --> (See [[list of specification categories]])
  
'''Introduction:''' &lt;!-- fill in one sentence starting with a verb that describes purpose of this element -->
+
'''Introduction:''' <!-- fill in one sentence starting with a verb that describes purpose of this element -->
 
Custom HLSL and CGFX Profiles for FX Composer.
 
Custom HLSL and CGFX Profiles for FX Composer.
  
 
===Concepts===
 
===Concepts===
&lt;!-- Background info needed to understand this element's purpose and place within COLLADA -->
+
<!-- Background info needed to understand this element's purpose and place within COLLADA -->
This &lt;extra> at the &lt;effect> level defines an effect with a direct reference to an external &lt;code>.fx or .cgfx&lt;/code> 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 of 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.
  
Line 28: Line 28:
 
|-
 
|-
 
!Parent element(s)
 
!Parent element(s)
|&lt;effect>
+
|<effect>
 
|-
 
|-
 
!Extra and/or Technique
 
!Extra and/or Technique
|&lt;extra type="import">/&lt;technique profile="NVIDIA_FXCOMPOSER">
+
|<extra type="import">/<technique profile="NVIDIA_FXCOMPOSER">
 
|-
 
|-
 
!Child elements
 
!Child elements
Line 41: Line 41:
  
 
===Details===
 
===Details===
&lt;!-- Additional info about how and <span class="plainlinks">[http://www.thepiggybackrider.com/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;/*CITATION*/">child carrier</span>]</span> where to use the element (and its children), lists of additional relevant links, detailed value tables for element or attribute values, etc. -->
+
<!-- Additional info about how and where to use the element (and its children), lists of additional relevant links, detailed value tables for element or attribute values, etc. -->
  
 
=== Example ===
 
=== Example ===
  &lt;effect id="Effect1" name="Gooch">
+
  <effect id="Effect1" name="Gooch">
     &lt;profile_COMMON>
+
     <profile_COMMON>
         &lt;technique sid="__fxc2_default">
+
         <technique sid="__fxc2_default">
             &lt;constant/>
+
             <constant/>
         &lt;/technique>
+
         </technique>
     &lt;/profile_COMMON>
+
     </profile_COMMON>
     &lt;extra type="import">
+
     <extra type="import">
         &lt;technique profile="NVIDIA_FXCOMPOSER">
+
         <technique profile="NVIDIA_FXCOMPOSER">
             &lt;import url="../Projects/Gooch.cgfx" compiler_options="" profile="cgfx"/>
+
             <import url="../Projects/Gooch.cgfx" compiler_options="" profile="cgfx"/>
         &lt;/technique>
+
         </technique>
     &lt;/extra>
+
     </extra>
  &lt;/effect>
+
  </effect>

Latest revision as of 18:03, 26 September 2011

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

<import> Element

Category: (See list of specification categories)

Introduction: Custom HLSL and CGFX Profiles for FX Composer.

Concepts

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.

Attributes

Name Type Description Required?
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)

Related Elements

Parent element(s) <effect>
Extra and/or Technique <extra type="import">/<technique profile="NVIDIA_FXCOMPOSER">
Child elements None
Other list any other relevant elements

Details

Example

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