ai_shader_sample.h
Go to the documentation of this file.
1 // Copyright 2020 Autodesk, Inc. All rights reserved.
2 //
3 // Use of this software is subject to the terms of the Autodesk license
4 // agreement provided at the time of installation or download, or which
5 // otherwise accompanies this software in either electronic or hard copy form.
6 
12 #pragma once
13 #include "ai_color.h"
14 #include "ai_vector.h"
15 
16 #ifdef AI_CPU_COMPILER
17 #include <stdint.h> // uint32_t etc
18 #endif
19 
20 // forward declarations
21 struct AtNode;
22 
31 struct AtScrSample {
34  float alpha;
36  uint32_t face;
37  const AtNode* obj;
38  float z;
39 };
40 
41 /*\}*/
RGB color.
Definition: ai_color.h:31
AtRGB color
color
Definition: ai_shader_sample.h:32
This represents a node in Arnold.
float z
hit distance (Z depth)
Definition: ai_shader_sample.h:38
Vector math types, operators and utilities.
3D point (single precision)
Definition: ai_vector.h:29
float alpha
alpha
Definition: ai_shader_sample.h:34
Color types and utilities.
const AtNode * obj
pointer to object hit
Definition: ai_shader_sample.h:37
Used to hold the result of AiTrace() calls.
Definition: ai_shader_sample.h:31
AtRGB opacity
opacity
Definition: ai_shader_sample.h:33
uint32_t face
triangle ID of hit
Definition: ai_shader_sample.h:36
AtVector point
3D hit point
Definition: ai_shader_sample.h:35

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