Data Structures | Macros | Variables
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...
 

Variables

void(* AtShaderNodeMethods::Evaluate )(AtNode *, AtShaderGlobals *)
 

Node Methods

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

Node Method Declarations

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

Detailed Description

Implementation of custom shader nodes.

Macro Definition Documentation

◆ AI_SHADER_NODE_EXPORT_METHODS

#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;
#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.

Function Documentation

◆ AiShaderEvaluate()

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

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