Skip to main content

apply_depth_effects

Function apply_depth_effects 

Source
pub fn apply_depth_effects(
    albedo: Vec4,
    normal: Vec3,
    position: Vec3,
    view_dir: Vec3,
    light_dir: Vec3,
    neighbors: &[Vec3],
    thickness: f32,
    config: &DepthEffectsConfig,
) -> Vec4
Expand description

Apply all depth effects to a pixel’s final color (CPU reference implementation).