Indicates the scope of a GLSL variable.
GLSL variable are automatically populated prior to drawing. This enumeration indicates when and how often the variable needs to be populated.
Most GLSL variables need to be populated anew as each node is drawn. But some variables, such as lighting or camera content only needs to be populated once each time the scene is drawn, and some other variables, such as bone matrices, need to be populated on each draw call.
Enumerator |
---|
kCC3GLSLVariableScopeUnknown |
The scope of the variable is unknown.
|
kCC3GLSLVariableScopeScene |
The scope of the variable is the entire scene.
|
kCC3GLSLVariableScopeNode |
The scope of the variable is the current node.
|
kCC3GLSLVariableScopeDraw |
The scope of the variable is the current draw call.
|