Data Structures
ai_shaderglobals.h File Reference

Shader globals struct, methods and macros. More...

#include "ai_params.h"
#include "ai_array.h"
#include "ai_color.h"
#include "ai_matrix.h"
#include "ai_vector.h"
#include "ai_string.h"
#include "ai_api.h"
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  AtShaderGlobals
 Shader globals data structure. More...
 

Shading Contexts

These macros let you determine the purpose that the shader globals were defined for.

#define AI_CONTEXT_SURFACE   0x00
 for ray-surface intersections

 
#define AI_CONTEXT_VOLUME   0x01
 for volume points during ray-marching

 
#define AI_CONTEXT_BACKGROUND   0x02
 for rays that don't hit any geometry

 
#define AI_CONTEXT_DISPLACEMENT   0x03
 for each vertex to be displaced

 
#define AI_CONTEXT_IMPORTANCE   0x05
 for importance sample table evaluations
 
AI_API AtShaderGlobalsAiShaderGlobals ()
 Allocate and initialize an AtShaderGlobals structure (a shading context) More...
 
AI_API void AiShaderGlobalsDestroy (AtShaderGlobals *sg)
 Deallocate an AtShaderGlobals struct. More...
 

Detailed Description

Shader globals struct, methods and macros.


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