Skip to content

Commit 42f1171

Browse files
committed
small fix
1 parent fda1e79 commit 42f1171

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/artic/technique/vmfguidedpathtracer.art

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mod vmf {
1111
fn @compute_normalization(kappa: f32) -> f32 {
1212
if kappa > 0 {
1313
let k = math_builtins::exp(-2 * kappa);
14-
kappa / (2 * super::flt_pi * (1 - k))
14+
super::safe_div(kappa, 2 * super::flt_pi * (1 - k))
1515
} else {
1616
super::uniform_sphere_pdf()
1717
}

0 commit comments

Comments
 (0)