Data Structures | Macros | Typedefs
Shader Nodes

Data Structures

struct  AtShaderNodeMethods
 Shader Node methods structure. More...
 

Macros

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

Typedefs

typedef struct AtShaderNodeMethods AtShaderNodeMethods
 Shader Node methods structure.
 

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

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 \
}; \
AtNodeMethods* tag = &ai_node_mtds;

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
[in,out]sgthe shader globals context for this shader evaluation, with the return value in sg->out

© 2009-2013 Solid Angle SL · all rights reserved · www.solidangle.com