Data Structures | Macros
Shader Nodes

Implementation of custom shader nodes. More...

Data Structures

struct  AtShaderNodeMethods
 Shader Node methods structure. More...
 

Macros

#define AI_SHADER_NODE_EXPORT_METHODS(tag)
 Shader Node methods exporter. More...
 

Node Method Declarations

#define shader_evaluate   static void Evaluate(AtNode* node, AtShaderGlobals* sg)
 Evaluate Shader method declaration.
 

Node Methods

AI_API void AiShaderEvaluate (AtNode *node, AtShaderGlobals *sg)
 Evaluate a shader. More...
 

Detailed Description

Implementation of custom shader nodes.

Macro Definition Documentation

#define AI_SHADER_NODE_EXPORT_METHODS (   tag)
Value:
static AtShaderNodeMethods ai_shader_mtds = { \
Evaluate \
}; \
static AtNodeMethods ai_node_mtds = { \
&ai_common_mtds, \
&ai_shader_mtds \
}; \
const AtNodeMethods* tag = &ai_node_mtds;
Node methods.
Definition: ai_node_entry.h:83
#define shader_evaluate
Evaluate Shader method declaration.
Definition: ai_shaders.h:52
Shader Node methods structure.
Definition: ai_shaders.h:29

Shader Node methods exporter.

Function Documentation

AI_API void AiShaderEvaluate ( AtNode node,
AtShaderGlobals sg 
)

Evaluate a shader.

Use this to evaluate a shader (or shader network) at the given shading context.

Parameters
nodethe shader node that will be evaluated, must be non-NULL
[in,out]sgthe non-NULL shader globals context for this shader evaluation, with the return value in sg->out

© 2020 Autodesk, Inc. · All rights reserved · www.arnoldrenderer.com