Implementation of custom shader nodes.
More...
|
#define | shader_evaluate static void Evaluate(AtNode* node, AtShaderGlobals* sg) |
| Evaluate Shader method declaration.
|
|
Implementation of custom shader nodes.
◆ AI_SHADER_NODE_EXPORT_METHODS
#define AI_SHADER_NODE_EXPORT_METHODS |
( |
|
tag | ) |
|
Value:
Evaluate \
}; \
&ai_common_mtds, \
&ai_shader_mtds \
}; \
#define shader_evaluate
Evaluate Shader method declaration.
Definition: ai_shaders.h:52
Node methods.
Definition: ai_node_entry.h:86
Shader Node methods structure.
Definition: ai_shaders.h:29
Shader Node methods exporter.
◆ AiShaderEvaluate()
Evaluate a shader.
Use this to evaluate a shader (or shader network) at the given shading context.
- Parameters
-
| node | the shader node that will be evaluated, must be non-NULL |
[in,out] | sg | the non-NULL shader globals context for this shader evaluation, with the return value in sg->out |