Blender V5.3
eevee_subsurface.bsl.hh File Reference

Go to the source code of this file.

Classes

struct  eevee::subsurface::Setup
struct  eevee::subsurface::SubSurfaceSample
struct  eevee::subsurface::Convolve

Namespaces

namespace  eevee
namespace  eevee::subsurface

Functions

Setup

Select tiles that have visible SSS effect and prepare the intermediate buffers for faster processing.

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)
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 eevee::subsurface::convolve_main (Convolve &srt, const draw::View &views, const gbuffer::Reader &reader, const uint3 group_id, const uint3 local_thread_id)

Variables

PipelineCompute eevee::subsurface::setup (setup_main)
PipelineCompute eevee::subsurface::convolve (convolve_main)