Skip to main content

compute_subsurface

Function compute_subsurface 

Source
pub fn compute_subsurface(
    normal: Vec3,
    light_dir: Vec3,
    view_dir: Vec3,
    thickness: f32,
    config: &DepthEffectsConfig,
) -> f32
Expand description

Compute subsurface scattering approximation for thin glyph parts. Light wraps around thin geometry, creating a translucent glow.