|
Blender V5.3
|
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) |
Clamp all components to the specified maximum and avoid color shifting.
Definition at line 90 of file eevee_colorspace_lib.bsl.hh.
References abs, brightness_clamp_max(), max, reduce_max(), and saturate.
Referenced by brightness_clamp_max(), brightness_clamp_max(), eevee::deferred::combine_frag(), eevee::forward_lighting_eval(), eevee::lightprobe::sphere::remap_cubemap_to_octahedral(), eevee::volume::scatter_main(), eevee::fast_gi::setup(), eevee::surf_world(), eevee::raytrace::fallback::trace(), eevee::raytrace::planar::trace(), and eevee::raytrace::screen::trace().
Definition at line 94 of file eevee_colorspace_lib.bsl.hh.
References brightness_clamp_max().
Definition at line 54 of file eevee_colorspace_lib.bsl.hh.
References log2, and log_from_scene_linear().
Referenced by eevee::raytracing::denoise::bilateral_main(), log_from_scene_linear(), log_from_scene_linear(), and eevee::raytracing::denoise::spatial_main().
Definition at line 58 of file eevee_colorspace_lib.bsl.hh.
References log_from_scene_linear().
Definition at line 82 of file eevee_colorspace_lib.bsl.hh.
References clamp(), and safe_color().
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().
Definition at line 63 of file eevee_colorspace_lib.bsl.hh.
References exp2, and scene_linear_from_log().
Referenced by eevee::raytracing::denoise::bilateral_main(), scene_linear_from_log(), scene_linear_from_log(), and eevee::raytracing::denoise::spatial_main().
Definition at line 67 of file eevee_colorspace_lib.bsl.hh.
References scene_linear_from_log().
Definition at line 28 of file eevee_colorspace_lib.bsl.hh.
References scene_linear_from_YCoCg(), float3::x, Y, float3::y, and float3::z.
Referenced by eevee::dof::setup::stabilize::comp_main(), eevee::dof::resolve::Resources::dof_neighborhood_clamp(), scene_linear_from_YCoCg(), scene_linear_from_YCoCg(), eevee::film::Film::store_combined(), and eevee::raytracing::denoise::temporal_main().
Definition at line 41 of file eevee_colorspace_lib.bsl.hh.
References scene_linear_from_YCoCg().
Definition at line 15 of file eevee_colorspace_lib.bsl.hh.
References transpose, and YCoCg_from_scene_linear().
Referenced by eevee::dof::setup::stabilize::Resources::cache_init(), eevee::dof::resolve::Resources::dof_neighborhood_clamp(), eevee::raytracing::denoise::DenoiseTemporal::local_statistics_get(), eevee::raytracing::denoise::DenoiseTemporal::radiance_history_sample(), eevee::film::Film::store_combined(), eevee::film::texelfetch_as_YCoCg_opacity(), YCoCg_from_scene_linear(), and YCoCg_from_scene_linear().
Definition at line 23 of file eevee_colorspace_lib.bsl.hh.
References YCoCg_from_scene_linear().