Blender V5.3
colorspace Namespace Reference

Functions

float4 safe_color (float4 c)
float3 safe_color (float3 c)
float3 brightness_clamp_max (float3 color, float limit)
float4 brightness_clamp_max (float4 color, float limit)
YCoCg
float3 YCoCg_from_scene_linear (float3 rgb_color)
float4 YCoCg_from_scene_linear (float4 rgba_color)
float3 scene_linear_from_YCoCg (float3 ycocg_color)
float4 scene_linear_from_YCoCg (float4 ycocg_color)
Logarithmic space

Used to crunch highlights and noise during denoising accumulations.

float3 log_from_scene_linear (float3 color)
float4 log_from_scene_linear (float4 color)
float3 scene_linear_from_log (float3 color)
float4 scene_linear_from_log (float4 color)

Function Documentation

◆ brightness_clamp_max() [1/2]

◆ brightness_clamp_max() [2/2]

float4 colorspace::brightness_clamp_max ( float4 color,
float limit )

Definition at line 94 of file eevee_colorspace_lib.bsl.hh.

References brightness_clamp_max().

◆ log_from_scene_linear() [1/2]

◆ log_from_scene_linear() [2/2]

float4 colorspace::log_from_scene_linear ( float4 color)

Definition at line 58 of file eevee_colorspace_lib.bsl.hh.

References log_from_scene_linear().

◆ safe_color() [1/2]

float3 colorspace::safe_color ( float3 c)

Definition at line 82 of file eevee_colorspace_lib.bsl.hh.

References clamp(), and safe_color().

◆ safe_color() [2/2]

float4 colorspace::safe_color ( float4 c)

Clamp components to avoid black square artifacts if a pixel goes NaN or negative. Threshold is arbitrary.

Definition at line 78 of file eevee_colorspace_lib.bsl.hh.

References clamp(), and safe_color().

Referenced by eevee::deferred::combine_frag(), eevee::dof::resolve::comp_main(), eevee::dof::setup::setup::comp_main(), eevee::dof::Accumulator::dof_slight_focus_gather(), safe_color(), safe_color(), eevee::surf_world(), and eevee::raytracing::denoise::temporal_main().

◆ scene_linear_from_log() [1/2]

◆ scene_linear_from_log() [2/2]

float4 colorspace::scene_linear_from_log ( float4 color)

Definition at line 67 of file eevee_colorspace_lib.bsl.hh.

References scene_linear_from_log().

◆ scene_linear_from_YCoCg() [1/2]

◆ scene_linear_from_YCoCg() [2/2]

float4 colorspace::scene_linear_from_YCoCg ( float4 ycocg_color)

Definition at line 41 of file eevee_colorspace_lib.bsl.hh.

References scene_linear_from_YCoCg().

◆ YCoCg_from_scene_linear() [1/2]

◆ YCoCg_from_scene_linear() [2/2]

float4 colorspace::YCoCg_from_scene_linear ( float4 rgba_color)

Definition at line 23 of file eevee_colorspace_lib.bsl.hh.

References YCoCg_from_scene_linear().