ai_shader_volume.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#include "ai_api.h"
16#include "ai_string.h"
17
18// forward declaration
19struct AtShaderGlobals;
20
44#define AiVolumeSampleFlt(_channel,_interp,_val) AiVolumeSampleFltFunc (_channel, sg, _interp, _val)
45#define AiVolumeSampleRGB(_channel,_interp,_val) AiVolumeSampleRGBFunc (_channel, sg, _interp, _val)
46#define AiVolumeSampleRGBA(_channel,_interp,_val) AiVolumeSampleRGBAFunc(_channel, sg, _interp, _val)
47#define AiVolumeSampleVec(_channel,_interp,_val) AiVolumeSampleVecFunc (_channel, sg, _interp, _val)
48#define AiVolumeSampleVec2(_channel,_interp,_val) AiVolumeSampleVec2Func(_channel, sg, _interp, _val)
49/*\}*/
50
51AI_API AI_DEVICE bool AiVolumeSampleFltFunc (const AtString channel, const AtShaderGlobals *sg, int interp, float* value);
52AI_API AI_DEVICE bool AiVolumeSampleRGBFunc (const AtString channel, const AtShaderGlobals *sg, int interp, AtRGB* value);
53AI_API AI_DEVICE bool AiVolumeSampleRGBAFunc(const AtString channel, const AtShaderGlobals *sg, int interp, AtRGBA* value);
54AI_API AI_DEVICE bool AiVolumeSampleVecFunc (const AtString channel, const AtShaderGlobals *sg, int interp, AtVector* value);
55AI_API AI_DEVICE bool AiVolumeSampleVec2Func(const AtString channel, const AtShaderGlobals *sg, int interp, AtVector2* value);
56
57/*\}*/
DLL export prefix for API functions (necessary for multi-platform development)
Color types and utilities.
AtString class for fast comparisons.
Vector math types, operators and utilities.
Arnold String allows for fast string comparisons.
Definition: ai_string.h:46
RGB color + alpha.
Definition: ai_color.h:267
RGB color.
Definition: ai_color.h:32
Shader globals data structure.
Definition: ai_shaderglobals.h:45
2D point
Definition: ai_vector.h:255
3D point (single precision)
Definition: ai_vector.h:30

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