|
Blender V5.3
|
#include <eevee_film.bsl.hh>
Public Member Functions | |
| float | quantization_dither () |
| void | process_render_sample (int2 texel_film, float4 &out_color, float &out_depth) |
Filter | |
| float3 | panoramic_direction_get (float2 film_co) |
| float3 | panoramic_direction_get (int2 texel_film) |
| bool | panoramic_texel_is_owned_by_view (float3 camera_direction, ePanoramicFace view_id) |
| ePanoramicFace | panoramic_view_id_get () |
| bool | sample_is_black (FilmSample samp) |
| FilmSample | panoramic_sample_get (int sample_n, int2 texel_film) |
| FilmSample | sample_get (int sample_n, int2 texel_film) |
| FilmSample | sample_get (int sample_n, int2 texel_film, const FilmSample(&panoramic_samples)[FILM_PANORAMIC_SAMPLE_LEN]) |
| float | weight_accumulation (int2 texel_film) |
| void | sample_accum (FilmSample samp, int pass_id, int layer, sampler2DArray tex, float4 &accum) |
| void | sample_accum (FilmSample samp, int pass_id, int layer, sampler2DArray tex, float &accum) |
| void | sample_accum_mist (FilmSample samp, float &accum) |
| void | sample_accum_combined (FilmSample samp, float4 &accum, float &weight_accum) |
| void | sample_cryptomatte_accum (FilmSample samp, int layer, sampler2D tex, float2(&crypto_samples)[4]) |
| void | cryptomatte_layer_accum_and_store (FilmSample dst, int2 texel_film, const FilmSample(&panoramic_samples)[FILM_PANORAMIC_SAMPLE_LEN], int pass_id, int layer_component, float4 &out_color) |
Load/Store Data | |
| float | distance_load (int2 texel) |
| float | weight_load (int2 texel) |
| float4 | display_color_load (int2 texel_film) |
| void | copy_history (int2 texel_film, float4 &out_color, float &out_depth) |
| float2 | pixel_history_motion_vector (int2 texel_sample) |
| void | get_catmull_rom_weights (float2 t, float2(&weights)[4]) |
| float4 | sample_catmull_rom (sampler2D color_tx, float2 input_texel) |
| void | combined_neighbor_boundbox (int2 texel, float4 &min_c, float4 &max_c) |
| float | aabb_clipping_dist_alpha (float origin, float direction, float aabb_min, float aabb_max) |
| float4 | amend_combined_history (float4 min_color, float4 max_color, float4 color_history, float4 src_color) |
| float | history_blend_factor (float velocity, float2 texel, float luma_min, float luma_max, float luma_history) |
| float4 | clamp_negative_values (float4 color) |
| void | store_combined (FilmSample dst, int2 src_texel, float4 color, float color_weight, float4 &display) |
| void | store_color_ex (FilmSample dst, int pass_id, float4 color, float4 &display, bool do_clamp_negative_values) |
| void | store_color (FilmSample dst, int pass_id, float4 color, float4 &display, bool do_clamp_negative_values=true) |
| void | store_color_and_light (FilmSample dst, int color_pass_id, int light_pass_id, float4 color, float4 light, float4 &display) |
| void | store_value (FilmSample dst, int pass_id, float value, float4 &display) |
| void | store_data (int2 texel_film, int pass_id, float4 data_sample, float4 &display) |
| void | store_depth (int2 texel_film, int2 texel_sample, float value, float &out_depth) |
| void | store_denoising_depth (FilmSample dst, float value, float4 &display) |
| void | store_distance (int2 texel, float value) |
| void | store_weight (int2 texel, float value) |
Definition at line 138 of file eevee_film.bsl.hh.
|
inline |
Definition at line 684 of file eevee_film.bsl.hh.
References abs.
Referenced by amend_combined_history().
|
inline |
Definition at line 694 of file eevee_film.bsl.hh.
References aabb_clipping_dist_alpha(), line_aabb_clipping_dist(), and saturate.
Referenced by store_combined().
Definition at line 743 of file eevee_film.bsl.hh.
References unroll.
Referenced by store_color_ex(), and store_combined().
|
inline |
Simple bounding box calculation in YCoCg as described in: "High Quality Temporal Supersampling" by Brian Karis at SIGGRAPH 2014
Definition at line 622 of file eevee_film.bsl.hh.
References abs, combined_tx, max, min, sqrt, square(), and eevee::film::texelfetch_as_YCoCg_opacity().
Referenced by store_combined().
|
inline |
Definition at line 502 of file eevee_film.bsl.hh.
References combined_id, depth_img, display_color_load(), distance(), distance_load(), imageLoadFast, imageStoreFast, in_combined_tx, out_combined_img, out_weight_img, texelFetch(), and weight_load().
Referenced by process_render_sample().
|
inline |
Definition at line 425 of file eevee_film.bsl.hh.
References cryptomatte, cryptomatte_tx, sample_cryptomatte_accum(), sample_get(), samples_len, eevee::Cryptomatte::store_film_sample(), eevee::Uniform::uniform_buf, and uniforms.
Referenced by process_render_sample().
Definition at line 486 of file eevee_film.bsl.hh.
References color_accum_img, cryptomatte, eevee::Cryptomatte::cryptomatte_img, display_id, eevee::cryptomatte::false_color(), imageLoadFast, in_combined_tx, texelFetch(), eevee::Uniform::uniform_buf, uniforms, and value_accum_img.
Referenced by copy_history().
Definition at line 464 of file eevee_film.bsl.hh.
References imageLoadFast, imageSize(), in_weight_img, eevee::Uniform::uniform_buf, uniforms, and use_reprojection.
Referenced by copy_history(), and process_render_sample().
Definition at line 551 of file eevee_film.bsl.hh.
Referenced by sample_catmull_rom().
|
inline |
"High Quality Temporal Supersampling" by Brian Karis at SIGGRAPH 2014 (Slide 43) Bias towards history if incoming pixel is near clamping. Reduces flicker.
Definition at line 713 of file eevee_film.bsl.hh.
References any(), greaterThanEqual, lessThan, mix, reduce_min(), safe_rcp(), saturate, eevee::Uniform::uniform_buf, and uniforms.
Referenced by store_combined().
Definition at line 187 of file eevee_film.bsl.hh.
References eevee::Uniform::uniform_buf, uniforms, and eevee::camera::view_from_uv().
Referenced by panoramic_direction_get(), and panoramic_sample_get().
Definition at line 194 of file eevee_film.bsl.hh.
References panoramic_direction_get().
|
inline |
Project a jittered film sample to the current face, then back to the film for its weight. Samples on another face are black with a zero weight. Samples outside the projection are black with their filter weight.
Definition at line 233 of file eevee_film.bsl.hh.
References clamp(), depth_tx, findLSB, float, floor, draw::View::get(), random::interleaved_gradient_2d(), is_zero(), length_squared(), max, normalize, panoramic_direction_get(), panoramic_texel_is_owned_by_view(), panoramic_view_id_get(), project_point(), eevee::Sampling::rng_2D_get(), sample_disk(), sampling, textureSize(), eevee::Uniform::uniform_buf, uniforms, eevee::camera::uv_from_view(), eevee::camera::view_from_uv(), ViewMatrices::viewinv, ViewMatrices::viewmat, views, ViewMatrices::wininv, and ViewMatrices::winmat.
Referenced by process_render_sample().
|
inline |
Definition at line 199 of file eevee_film.bsl.hh.
References is_zero(), and eevee::film::panoramic_face_index().
Referenced by panoramic_sample_get().
|
inline |
Definition at line 207 of file eevee_film.bsl.hh.
References draw::View::get(), normalize, eevee::film::panoramic_face_index(), transpose, eevee::Uniform::uniform_buf, uniforms, ViewMatrices::viewmat, and views.
Referenced by panoramic_sample_get().
Dilate velocity by using the nearest pixel in a cross pattern. "High Quality Temporal Supersampling" by Brian Karis at SIGGRAPH 2014 (Slide 27)
Definition at line 520 of file eevee_film.bsl.hh.
References camera, clamp(), depth_tx, reverse_z::read(), texelFetch(), textureSize(), eevee::Uniform::uniform_buf, uniforms, vector_tx, views, and x.
Referenced by store_combined().
|
inline |
NOTE: out_depth is scene linear depth from the camera origin.
Definition at line 988 of file eevee_film.bsl.hh.
References camera, eevee::Cryptomatte::clear_samples(), closest(), color_accum_img, combined_id, constants, copy_history(), cryptomatte, cryptomatte_layer_accum_and_store(), eevee::film::depth_convert_to_scene(), depth_img, depth_tx, display_id, distance_load(), enabled_categories, flag_test(), draw::View::get(), imageLoadFast, imageStoreFast, normal_id, panoramic_sample_get(), position, reverse_z::read(), rp_color_tx, rp_value_tx, sample_accum(), sample_accum_combined(), sample_accum_mist(), sample_get(), sample_is_black(), samples_len, static_branch, store_color(), store_color_and_light(), store_combined(), store_data(), store_denoising_depth(), store_depth(), store_distance(), store_value(), store_weight(), texelFetch(), textureSize(), eevee::Uniform::uniform_buf, uniforms, eevee::film::FilmConstants::use_panoramic, use_reprojection, vector_tx, views, weight_accumulation(), and weight_load().
|
inline |
Definition at line 177 of file eevee_film.bsl.hh.
References eevee::Sampling::rng_1D_get(), and sampling.
Referenced by store_color_ex(), store_combined(), and store_value().
|
inline |
Definition at line 355 of file eevee_film.bsl.hh.
References layer, sample_is_black(), and texelFetch().
|
inline |
Definition at line 345 of file eevee_film.bsl.hh.
References layer, sample_is_black(), and texelFetch().
Referenced by process_render_sample().
|
inline |
Definition at line 384 of file eevee_film.bsl.hh.
References combined_id, combined_tx, eevee::film::luma_weight(), sample_is_black(), eevee::film::texelfetch_as_YCoCg_opacity(), uniforms, and float4::x.
Referenced by process_render_sample().
|
inline |
Definition at line 364 of file eevee_film.bsl.hh.
References abs, depth_tx, draw::View::get(), length(), ViewMatrices::point_screen_to_view(), pow, reverse_z::read(), sample_is_black(), saturate, texelFetch(), textureSize(), eevee::Uniform::uniform_buf, uniforms, views, ViewMatrices::winmat, and float3::z.
Referenced by process_render_sample().
Use optimized version by leveraging bilinear filtering from hardware sampler and by removing corner taps. From "Filmic SMAA" by Jorge Jimenez at SIGGRAPH 2016 http://advances.realtimerendering.com/s2016/Filmic%20SMAA%20v7.pptx
Definition at line 568 of file eevee_film.bsl.hh.
References clamp(), get_catmull_rom_weights(), greaterThan, modf, reduce_add(), texelFetch(), textureLod(), textureSize(), eevee::Uniform::uniform_buf, uniforms, float4::w, float2::x, float4::x, x, float2::y, float4::y, y, and float4::z.
Referenced by store_combined().
|
inline |
Definition at line 400 of file eevee_film.bsl.hh.
References hash, layer, sample_is_black(), texelFetch(), x, and y.
Referenced by cryptomatte_layer_accum_and_store().
|
inline |
Definition at line 284 of file eevee_film.bsl.hh.
References clamp(), length_squared(), lessThan, max, scaling_factor, eevee::Uniform::uniform_buf, and uniforms.
Referenced by cryptomatte_layer_accum_and_store(), process_render_sample(), sample_get(), and weight_accumulation().
|
inline |
Definition at line 319 of file eevee_film.bsl.hh.
References constants, sample_get(), static_branch, and eevee::film::FilmConstants::use_panoramic.
|
inline |
Definition at line 218 of file eevee_film.bsl.hh.
References constants, static_branch, and eevee::film::FilmConstants::use_panoramic.
Referenced by process_render_sample(), sample_accum(), sample_accum(), sample_accum_combined(), sample_accum_mist(), and sample_cryptomatte_accum().
|
inline |
Definition at line 859 of file eevee_film.bsl.hh.
References color_accum_img, imageLoadFast, and store_color_ex().
Referenced by process_render_sample().
|
inline |
Definition at line 876 of file eevee_film.bsl.hh.
References color_accum_img, imageLoadFast, eevee::film::safe_divide_even_color(), and store_color_ex().
Referenced by process_render_sample().
|
inline |
Definition at line 834 of file eevee_film.bsl.hh.
References any(), clamp_negative_values(), color_accum_img, display_id, imageStoreFast, isnan, eevee::film::patch_float_for_16f_storage(), and quantization_dither().
Referenced by store_color(), and store_color_and_light().
|
inline |
Definition at line 759 of file eevee_film.bsl.hh.
References amend_combined_history(), any(), clamp_negative_values(), combined_id, combined_neighbor_boundbox(), display_id, history_blend_factor(), imageStoreFast, in_combined_tx, isnan, length(), eevee::film::luma_weight(), out_combined_img, eevee::film::patch_float_for_16f_storage(), pixel_history_motion_vector(), quantization_dither(), sample_catmull_rom(), colorspace::scene_linear_from_YCoCg(), texelFetch(), uniforms, use_reprojection, float4::x, and colorspace::YCoCg_from_scene_linear().
Referenced by process_render_sample().
|
inline |
Definition at line 926 of file eevee_film.bsl.hh.
References color_accum_img, display_id, and imageStoreFast.
Referenced by process_render_sample().
|
inline |
Definition at line 957 of file eevee_film.bsl.hh.
References denoising_depth_img, display_id, imageLoadFast, imageStoreFast, eevee::Uniform::uniform_buf, and uniforms.
Referenced by process_render_sample().
|
inline |
Definition at line 938 of file eevee_film.bsl.hh.
References constants, eevee::film::depth_convert_to_scene(), depth_img, depth_tx, draw::View::get(), imageStoreFast, textureSize(), eevee::Uniform::uniform_buf, uniforms, eevee::film::FilmConstants::use_panoramic, and views.
Referenced by process_render_sample().
Definition at line 975 of file eevee_film.bsl.hh.
References imageStoreFast, and out_weight_img.
Referenced by process_render_sample().
|
inline |
Definition at line 903 of file eevee_film.bsl.hh.
References display_id, imageLoadFast, imageStoreFast, isnan, eevee::film::patch_float_for_16f_storage(), quantization_dither(), and value_accum_img.
Referenced by process_render_sample().
Definition at line 980 of file eevee_film.bsl.hh.
References imageStoreFast, and out_weight_img.
Referenced by process_render_sample().
Definition at line 332 of file eevee_film.bsl.hh.
References sample_get(), samples_len, scaling_factor, eevee::Uniform::uniform_buf, and uniforms.
Referenced by process_render_sample().
Definition at line 475 of file eevee_film.bsl.hh.
References imageLoadFast, imageSize(), in_weight_img, eevee::Uniform::uniform_buf, uniforms, and use_reprojection.
Referenced by copy_history(), and process_render_sample().
| CameraVelocity eevee::film::Film::camera |
Definition at line 141 of file eevee_film.bsl.hh.
Referenced by pixel_history_motion_vector(), and process_render_sample().
| image2DArray eevee::film::Film::color_accum_img |
Definition at line 172 of file eevee_film.bsl.hh.
Referenced by display_color_load(), process_render_sample(), store_color(), store_color_and_light(), store_color_ex(), and store_data().
| int eevee::film::Film::combined_id |
Definition at line 151 of file eevee_film.bsl.hh.
Referenced by copy_history(), process_render_sample(), sample_accum_combined(), and store_combined().
| sampler2D eevee::film::Film::combined_tx |
Definition at line 157 of file eevee_film.bsl.hh.
Referenced by combined_neighbor_boundbox(), and sample_accum_combined().
| FilmConstants eevee::film::Film::constants |
Definition at line 139 of file eevee_film.bsl.hh.
Referenced by process_render_sample(), sample_get(), sample_is_black(), and store_depth().
| Cryptomatte eevee::film::Film::cryptomatte |
Definition at line 145 of file eevee_film.bsl.hh.
Referenced by cryptomatte_layer_accum_and_store(), display_color_load(), and process_render_sample().
| sampler2D eevee::film::Film::cryptomatte_tx |
Definition at line 161 of file eevee_film.bsl.hh.
Referenced by cryptomatte_layer_accum_and_store().
| image2D eevee::film::Film::denoising_depth_img |
Definition at line 174 of file eevee_film.bsl.hh.
Referenced by store_denoising_depth().
| image2D eevee::film::Film::depth_img |
Definition at line 171 of file eevee_film.bsl.hh.
Referenced by copy_history(), process_render_sample(), and store_depth().
| sampler2DDepth eevee::film::Film::depth_tx |
Definition at line 156 of file eevee_film.bsl.hh.
Referenced by panoramic_sample_get(), pixel_history_motion_vector(), process_render_sample(), sample_accum_mist(), and store_depth().
| int eevee::film::Film::display_id |
Definition at line 152 of file eevee_film.bsl.hh.
Referenced by display_color_load(), process_render_sample(), store_color_ex(), store_combined(), store_data(), store_denoising_depth(), and store_value().
| uint eevee::film::Film::enabled_categories |
Definition at line 147 of file eevee_film.bsl.hh.
Referenced by process_render_sample().
| sampler2D eevee::film::Film::in_combined_tx |
Definition at line 164 of file eevee_film.bsl.hh.
Referenced by copy_history(), display_color_load(), and store_combined().
| const image2DArray eevee::film::Film::in_weight_img |
Definition at line 166 of file eevee_film.bsl.hh.
Referenced by distance_load(), and weight_load().
| int eevee::film::Film::normal_id |
Definition at line 153 of file eevee_film.bsl.hh.
Referenced by process_render_sample().
| image2D eevee::film::Film::out_combined_img |
Definition at line 170 of file eevee_film.bsl.hh.
Referenced by copy_history(), and store_combined().
| image2DArray eevee::film::Film::out_weight_img |
Definition at line 167 of file eevee_film.bsl.hh.
Referenced by copy_history(), store_distance(), and store_weight().
| sampler2DArray eevee::film::Film::rp_color_tx |
Definition at line 159 of file eevee_film.bsl.hh.
Referenced by process_render_sample().
| sampler2DArray eevee::film::Film::rp_value_tx |
Definition at line 160 of file eevee_film.bsl.hh.
Referenced by process_render_sample().
| int eevee::film::Film::samples_len |
Definition at line 148 of file eevee_film.bsl.hh.
Referenced by cryptomatte_layer_accum_and_store(), process_render_sample(), and weight_accumulation().
| Sampling eevee::film::Film::sampling |
Definition at line 144 of file eevee_film.bsl.hh.
Referenced by panoramic_sample_get(), and quantization_dither().
| int eevee::film::Film::scaling_factor |
Definition at line 150 of file eevee_film.bsl.hh.
Referenced by sample_get(), and weight_accumulation().
| Uniform eevee::film::Film::uniforms |
Definition at line 143 of file eevee_film.bsl.hh.
Referenced by cryptomatte_layer_accum_and_store(), display_color_load(), distance_load(), history_blend_factor(), panoramic_direction_get(), panoramic_sample_get(), panoramic_view_id_get(), pixel_history_motion_vector(), process_render_sample(), sample_accum_combined(), sample_accum_mist(), sample_catmull_rom(), sample_get(), store_combined(), store_denoising_depth(), store_depth(), weight_accumulation(), and weight_load().
| bool eevee::film::Film::use_reprojection |
Definition at line 149 of file eevee_film.bsl.hh.
Referenced by distance_load(), process_render_sample(), store_combined(), and weight_load().
| image2DArray eevee::film::Film::value_accum_img |
Definition at line 173 of file eevee_film.bsl.hh.
Referenced by display_color_load(), and store_value().
| sampler2D eevee::film::Film::vector_tx |
Definition at line 158 of file eevee_film.bsl.hh.
Referenced by pixel_history_motion_vector(), and process_render_sample().
| draw::View eevee::film::Film::views |
Definition at line 142 of file eevee_film.bsl.hh.
Referenced by panoramic_sample_get(), panoramic_view_id_get(), pixel_history_motion_vector(), process_render_sample(), sample_accum_mist(), and store_depth().