|
Blender V5.3
|
Classes | |
| struct | Setup |
| struct | SubSurfaceSample |
| struct | Convolve |
Functions | |
Setup | |
Select tiles that have visible SSS effect and prepare the intermediate buffers for faster processing. | |
| void | setup_main (Setup &srt, const draw::View &views, const gbuffer::Reader &reader, const uint3 group_id, const uint3 global_thread_id, const uint local_thread_index) |
Convolve | |
Process in screen space the diffuse radiance input to mimic subsurface transmission. This implementation follows the technique described in the SIGGRAPH presentation: "Efficient screen space subsurface scattering SIGGRAPH 2018" by Evgenii Golubev But, instead of having all the precomputed weights for all three color primaries, we precompute a weight profile texture to be able to support per pixel AND per channel radius. | |
| void | convolve_main (Convolve &srt, const draw::View &views, const gbuffer::Reader &reader, const uint3 group_id, const uint3 local_thread_id) |
Variables | |
| PipelineCompute | setup (setup_main) |
| PipelineCompute | convolve (convolve_main) |
| void eevee::subsurface::convolve_main | ( | Convolve & | srt, |
| const draw::View & | views, | ||
| const gbuffer::Reader & | reader, | ||
| const uint3 | group_id, | ||
| const uint3 | local_thread_id ) |
Definition at line 196 of file eevee_subsurface.bsl.hh.
References barrier(), CLOSURE_BSSRDF_BURLEY_ID, convolve_main(), eevee::subsurface::SubSurfaceSample::depth, distance(), from_rotation(), from_scale(), imageStoreFast, random::interleaved_gradient(), gbuffer::Layers::layer, local_invocation_id, M_PI, max, ViewMatrices::point_screen_to_view(), eevee::subsurface::SubSurfaceSample::radiance, reverse_z::read(), reduce_max(), resource_table, rgb9e5_encode(), safe_rcp(), sqrt, eevee::subsurface::SubSurfaceSample::sss_id, texelFetch(), textureLod(), textureSize(), unpackUvec2x16(), ViewMatrices::winmat, work_group_id, float2::x, and float3::z.
Referenced by convolve_main().
| void eevee::subsurface::setup_main | ( | Setup & | srt, |
| const draw::View & | views, | ||
| const gbuffer::Reader & | reader, | ||
| const uint3 | group_id, | ||
| const uint3 | global_thread_id, | ||
| const uint | local_thread_index ) |
Definition at line 46 of file eevee_subsurface.bsl.hh.
References atomicAdd(), barrier(), CLOSURE_BSSRDF_BURLEY_ID, ViewMatrices::depth_screen_to_view(), float, global_invocation_id, imageLoadFast, imageStore(), imageStoreFast, gbuffer::Layers::layer, local_invocation_index, packUvec2x16(), reverse_z::read(), reduce_max(), resource_table, rgb9e5_decode(), setup_main(), texelFetch(), textureSize(), ViewMatrices::winmat, and work_group_id.
Referenced by setup_main().
| PipelineCompute eevee::subsurface::convolve(convolve_main) | ( | convolve_main | ) |
| PipelineCompute eevee::subsurface::setup(setup_main) | ( | setup_main | ) |