ai_shader_sss.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
15// forward declaration
16struct AtShaderGlobals;
17
25AI_API void AiBSSRDFEmpirical(const AtShaderGlobals* sg, AtRGB& direct, AtRGB& indirect, const float* mfp, const float* albedo, const AtRGB* weight, unsigned int num = 1);
26AI_API AI_PURE bool AiShaderGlobalsFromSSS(const AtShaderGlobals* sg);
27
28/*\}*/
Color types and utilities.
AI_API void AiBSSRDFEmpirical(const AtShaderGlobals *sg, AtRGB &direct, AtRGB &indirect, const float *mfp, const float *albedo, const AtRGB *weight, unsigned int num=1)
Calculate direct and indirectly lit SSS using an BSSRDF model that was empirically fitted to match br...
Definition: ai_sss.cpp:30
RGB color.
Definition: ai_color.h:32
Shader globals data structure.
Definition: ai_shaderglobals.h:45

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