|
Blender V5.3
|
Classes | |
| struct | Resources |
Functions | |
| uint | pack_payload (float2 motion, uint2 thread_id) |
| uint2 | unpack_payload (uint payload) |
| template<enum TextureWriteFormat velocity_format> | |
| void | flatten_comp (Resources< velocity_format > &srt, const draw::View &views, const uint3 group_id, const uint3 global_id, const uint3 local_id, const uint local_index) |
| template void | flatten_comp< SFLOAT_16_16 > (Resources< SFLOAT_16_16 > &, const draw::View &, const uint3, const uint3, const uint3, const uint) |
| template void | flatten_comp< SFLOAT_16_16_16_16 > (Resources< SFLOAT_16_16_16_16 > &, const draw::View &, const uint3, const uint3, const uint3, const uint) |
| void eevee::motion_blur::flatten::flatten_comp | ( | Resources< velocity_format > & | srt, |
| const draw::View & | views, | ||
| const uint3 | group_id, | ||
| const uint3 | global_id, | ||
| const uint3 | local_id, | ||
| const uint | local_index ) |
Shaders that down-sample velocity buffer into squared tile of MB_TILE_DIVISOR pixels wide. Outputs the largest motion vector in the tile area. Also perform velocity resolve to speedup the convolution pass.
Based on: A Fast and Stable Feature-Aware Motion Blur Filter by Jean-Philippe Guertin, Morgan McGuire, Derek Nowrouzezahrai
Adapted from G3D Innovation Engine implementation.
Definition at line 127 of file eevee_motion_blur.bsl.hh.
References all(), atomicMax(), barrier(), eevee::motion_blur::clamp_motion_and_get_length(), equal, flatten_comp(), global_invocation_id, imageLoad(), imageSize(), imageStore(), line_unit_square_intersect_dist_safe(), local_invocation_id, local_invocation_index, min, eevee::velocity::pack(), pack_payload(), reverse_z::read(), resource_table, SFLOAT_16_16, texelFetch(), unpack_payload(), work_group_id, float2::x, and float2::y.
Referenced by flatten_comp(), flatten_comp< SFLOAT_16_16 >(), and flatten_comp< SFLOAT_16_16_16_16 >().
| template void eevee::motion_blur::flatten::flatten_comp< SFLOAT_16_16 > | ( | Resources< SFLOAT_16_16 > & | , |
| const draw::View & | , | ||
| const uint3 | , | ||
| const uint3 | , | ||
| const uint3 | , | ||
| const uint | ) |
References flatten_comp().
| template void eevee::motion_blur::flatten::flatten_comp< SFLOAT_16_16_16_16 > | ( | Resources< SFLOAT_16_16_16_16 > & | , |
| const draw::View & | , | ||
| const uint3 | , | ||
| const uint3 | , | ||
| const uint3 | , | ||
| const uint | ) |
References flatten_comp().
Definition at line 102 of file eevee_motion_blur.bsl.hh.
References ceil, length(), min, and pack_payload().
Referenced by flatten_comp(), and pack_payload().
| uint2 eevee::motion_blur::flatten::unpack_payload | ( | uint | payload | ) |
Definition at line 109 of file eevee_motion_blur.bsl.hh.
References unpack_payload().
Referenced by flatten_comp(), and unpack_payload().