Blender  V3.3
Functions
kernel/util/color.h File Reference
#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)
 

Function Documentation

◆ linear_rgb_to_gray()

ccl_device float linear_rgb_to_gray ( KernelGlobals  kg,
float3  c 
)

◆ rec709_to_rgb()

ccl_device float3 rec709_to_rgb ( KernelGlobals  kg,
float3  rec709 
)

◆ xyz_to_rgb()

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().

◆ 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().