|
Blender V5.3
|
Classes | |
| struct | FilmConstants |
| struct | Film |
| struct | FilmFragOut |
| struct | FilmDisplay |
| struct | ConvertCombined |
| struct | ConvertDepth |
| struct | ConvertValue |
| struct | ConvertColor |
| struct | ConvertCryptomatte |
Film accumulation utils functions.
Definition at line 1425 of file eevee_film.bsl.hh.
References accumulate_comp(), any(), global_invocation_id, greaterThanEqual, and resource_table.
Referenced by accumulate_comp().
| void eevee::film::accumulate_or_display_frag | ( | const FilmDisplay & | srt, |
| Film & | film, | ||
| const Uniform & | uni, | ||
| const draw::View & | views, | ||
| FilmFragOut & | frag_out, | ||
| const float4 | frag_co, | ||
| float | out_depth ) |
Definition at line 1327 of file eevee_film.bsl.hh.
References accumulate_or_display_frag(), any(), display_depth_amend(), eevee::cryptomatte::false_color(), frag_coord, frag_depth, imageLoadFast, is_zero(), out, resource_table, and texelFetch().
Referenced by accumulate_or_display_frag().
| float eevee::film::depth_convert_to_scene | ( | const ViewMatrices | view, |
| float | depth, | ||
| float2 | uv, | ||
| bool | is_panoramic_camera ) |
Definition at line 29 of file eevee_film.bsl.hh.
References depth_convert_to_scene(), ViewMatrices::depth_screen_to_view(), length(), and ViewMatrices::point_screen_to_view().
Referenced by depth_convert_to_scene(), eevee::film::Film::process_render_sample(), and eevee::film::Film::store_depth().
Definition at line 52 of file eevee_film.bsl.hh.
References display_depth_amend(), gpu_fwidth(), and saturate.
Referenced by accumulate_or_display_frag(), and display_depth_amend().
| void eevee::film::display_frag | ( | Film & | film, |
| FilmFragOut & | frag_out, | ||
| const Uniform & | uni, | ||
| const draw::View & | views, | ||
| const float4 | frag_co, | ||
| float | out_depth ) |
display_frag is used to work around iGPU issues.
Caches are not flushed in the eevee_film_frag shader due to unsupported read/write access. We schedule the eevee_film_comp shader instead. Resources are attached read only and does the part that is missing from the eevee_film_frag shader.
Definition at line 1388 of file eevee_film.bsl.hh.
References any(), display_frag(), eevee::cryptomatte::false_color(), frag_coord, frag_depth, gpu_fwidth(), imageLoadFast, out, resource_table, saturate, and texelFetch().
Referenced by display_frag().
| void eevee::film::fullscreen_vert | ( | const int | vert_id, |
| float4 & | out_position ) |
Definition at line 1310 of file eevee_film.bsl.hh.
References fullscreen_vert(), fullscreen_vertex(), position, vertex, and vertex_id.
Referenced by fullscreen_vert().
Definition at line 76 of file eevee_film.bsl.hh.
References luma_weight(), and eevee::Uniform::uniform_buf.
Referenced by luma_weight(), eevee::film::Film::sample_accum_combined(), and eevee::film::Film::store_combined().
| ePanoramicFace eevee::film::panoramic_face_index | ( | float3 | direction | ) |
Definition at line 40 of file eevee_film.bsl.hh.
References abs, panoramic_face_index(), float3::x, float3::y, and float3::z.
Referenced by panoramic_face_index(), eevee::film::Film::panoramic_texel_is_owned_by_view(), and eevee::film::Film::panoramic_view_id_get().
| void eevee::film::pass_convert | ( | ResourceT & | srt, |
| const uint3 | global_id ) |
Definition at line 1485 of file eevee_film.bsl.hh.
References any(), global_invocation_id, greaterThan, imageSize(), imageStoreFast, lessThan, pass_convert(), resource_table, texelFetch(), and textureSize().
Referenced by pass_convert(), pass_convert< ConvertColor, true >(), pass_convert< ConvertCombined, false >(), pass_convert< ConvertCryptomatte, true >(), pass_convert< ConvertDepth, false >(), and pass_convert< ConvertValue, true >().
| template void eevee::film::pass_convert< ConvertColor, true > | ( | ConvertColor & | , |
| const uint3 | ) |
References pass_convert().
| template void eevee::film::pass_convert< ConvertCombined, false > | ( | ConvertCombined & | , |
| const uint3 | ) |
References pass_convert().
| template void eevee::film::pass_convert< ConvertCryptomatte, true > | ( | ConvertCryptomatte & | , |
| const uint3 | ) |
References pass_convert().
| template void eevee::film::pass_convert< ConvertDepth, false > | ( | ConvertDepth & | , |
| const uint3 | ) |
References pass_convert().
| template void eevee::film::pass_convert< ConvertValue, true > | ( | ConvertValue & | , |
| const uint3 | ) |
References pass_convert().
Definition at line 97 of file eevee_film.bsl.hh.
References floatBitsToUint, patch_float_for_16f_storage(), and uintBitsToFloat.
Round floats mantissa before they get written to a 16 bit float storage to avoid drifting.
Apparently, most (if not all) hardware truncate the mantissa when writing the attribute to a 16 bit float texture. This biases our accumulation drastically (see #126947). Manually rounding the mantissa right before storage (and thus truncation) fixes the issue.
A fixed offset stays biased under repeated accumulation. Drawing a random offset below 1 ULP seems to fix the drift (see #129533).
Definition at line 93 of file eevee_film.bsl.hh.
References floatBitsToUint, patch_float_for_16f_storage(), and uintBitsToFloat.
Referenced by patch_float_for_16f_storage(), patch_float_for_16f_storage(), eevee::film::Film::store_color_ex(), eevee::film::Film::store_combined(), and eevee::film::Film::store_value().
Definition at line 102 of file eevee_film.bsl.hh.
References b, safe_divide_even_color(), safe_rcp(), float4::x, float4::y, and float4::z.
Referenced by safe_divide_even_color(), and eevee::film::Film::store_color_and_light().
Definition at line 65 of file eevee_film.bsl.hh.
References saturate, texelFetch(), texelfetch_as_YCoCg_opacity(), and colorspace::YCoCg_from_scene_linear().
Referenced by eevee::film::Film::combined_neighbor_boundbox(), eevee::film::Film::sample_accum_combined(), and texelfetch_as_YCoCg_opacity().