Techniques and Passes
Techniques provide the rendering muscle. A technique encapsulates the effect state that determines a rendering style. A technique is made up of one or more passes.
Techniques
technique [ id ] [< annotation(s) >]
{ pass(es) };
- id - Optional unique identifier. See IDs and Semantics.
- annotation - Zero or more optional pieces of user-specific information. See Annotations.
- pass(es) - Zero or more passes. Each pass contains state assignments. See below.
Passes
A pass contains the state assignments required to render.
pass [ id ] [< annotation(s) >]
{ state assignment(s) }
- id - Optional unique identifier. See IDs and Semantics.
- annotation - One or more optional piece of user-specific information. See Annotations.
- assignment(s) - Assign zero or more state values, or evaluate one or more expressions. See States and Expressions.
Passes ignore all but the last assignment in a set of repeated assignments to the same state.