Function bilateral_edge_weight
pub fn bilateral_edge_weight(
center_depth: f32,
sample_depth: f32,
depth_threshold: f32,
center_normal: [f32; 3],
sample_normal: [f32; 3],
normal_power: f32,
) -> f32Expand description
Bilateral weight for depth and normal edge preservation.
Rejects samples across geometric silhouettes (depth discontinuities) and across sharp surface creases (divergent normals) to prevent haloing.