Skip to content

Commit 9af09e7

Browse files
committed
fixed microfacet bug
1 parent 59faa2d commit 9af09e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/artic/core/microfacet.art

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ fn @sample_vndf_ggx(rnd: RandomGenerator, local: Mat3x3, vN: Vec3, alpha_u: f32,
386386
let x = sinTheta * math_builtins::cos(phi);
387387
let y = sinTheta * math_builtins::sin(phi);
388388

389-
let h = all::vec3_add(all::make_vec3(x,y,z), vL);
389+
let h = all::vec3_add(all::make_vec3(x,y,z), sL);
390390

391391
// Unstretch
392392
let Nh = all::vec3_normalize(all::make_vec3(h.x * alpha_u, h.y * alpha_v, h.z));

0 commit comments

Comments
 (0)