Pass FX Composer 2 extension: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
extensions->extension |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{extension|company=NVIDIA|product=FX Composer 2}} | ||
== | == ColladaFX Enabling/Disabling Shader Passes == | ||
FXComposer 2.0 added an extra at the pass level to enable or disable passes. | |||
See example below. | See example below. | ||
== Example == | == 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> | ||
Latest revision as of 05:00, 23 February 2009
| Extension information |
|---|
|
| 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>