ai_shader_sample.h
Go to the documentation of this file.
1// Copyright 2021 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
21struct AtNode;
22
34 float alpha;
36 uint32_t face;
37 const AtNode* obj;
38 float z;
39};
40
41/*\}*/
Color types and utilities.
Vector math types, operators and utilities.
AtVector point
3D hit point
Definition: ai_shader_sample.h:35
AtRGB color
color
Definition: ai_shader_sample.h:32
float z
hit distance (Z depth)
Definition: ai_shader_sample.h:38
const AtNode * obj
pointer to object hit
Definition: ai_shader_sample.h:37
float alpha
alpha
Definition: ai_shader_sample.h:34
uint32_t face
triangle ID of hit
Definition: ai_shader_sample.h:36
AtRGB opacity
opacity
Definition: ai_shader_sample.h:33
This represents a node in Arnold.
RGB color.
Definition: ai_color.h:32
Used to hold the result of AiTrace() calls.
Definition: ai_shader_sample.h:31
3D point (single precision)
Definition: ai_vector.h:30

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