Effect framework: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 491: Line 491:
* write-mask: Whether to write to the depth buffer or not.
* write-mask: Whether to write to the depth buffer or not.
* enabled: Whether depth testing is enabled or not.
* enabled: Whether depth testing is enabled or not.
===== define =====
Injects a <tt>#define</tt> preprocessor directive into the shaders used in this pass. It is then possible to create logic around this define using conventional preprocessor directives like <tt>#ifdef</tt>, <tt>#endif</tt>, etc. Keep in mind that shaders must import the define before being able to use it. For example, for a define named <tt>USE_TEXTUREMAPPING</tt>, the following GLSL code must be placed right after the <tt>#version</tt> directive:
<syntaxhighlight lang="glsl">
#pragma import_defines(USE_TEXTUREMAPPING)
</syntaxhighlight>
* name: Name of the define.
* value: Value of the define (optional).


===== program =====
===== program =====
343

edits

Navigation menu