Blender
V3.3
|
#include "util/color.h"
Go to the source code of this file.
Functions | |
CCL_NAMESPACE_BEGIN ccl_device float3 | xyz_to_rgb (KernelGlobals kg, float3 xyz) |
ccl_device float3 | xyz_to_rgb_clamped (KernelGlobals kg, float3 xyz) |
ccl_device float3 | rec709_to_rgb (KernelGlobals kg, float3 rec709) |
ccl_device float | linear_rgb_to_gray (KernelGlobals kg, float3 c) |
ccl_device float linear_rgb_to_gray | ( | KernelGlobals | kg, |
float3 | c | ||
) |
Definition at line 31 of file kernel/util/color.h.
References Freestyle::c, blender::math::dot(), float4_to_float3(), and kernel_data.
Referenced by combine_with_energy(), svm_node_closure_bsdf(), and svm_node_convert().
ccl_device float3 rec709_to_rgb | ( | KernelGlobals | kg, |
float3 | rec709 | ||
) |
Definition at line 22 of file kernel/util/color.h.
References blender::math::dot(), float4_to_float3(), kernel_data, and make_float3.
Referenced by ShaderManager::init_xyz_transforms(), svm_node_blackbody(), and svm_node_principled_volume().
CCL_NAMESPACE_BEGIN ccl_device float3 xyz_to_rgb | ( | KernelGlobals | kg, |
float3 | xyz | ||
) |
Definition at line 10 of file kernel/util/color.h.
References blender::math::dot(), float4_to_float3(), kernel_data, and make_float3.
Referenced by xyz_to_rgb_clamped().
ccl_device float3 xyz_to_rgb_clamped | ( | KernelGlobals | kg, |
float3 | xyz | ||
) |
Definition at line 17 of file kernel/util/color.h.
References max, xyz_to_rgb(), and zero_float3().
Referenced by sky_radiance_hosek(), sky_radiance_nishita(), and sky_radiance_preetham().