Skip to content

Commit 8f68ea7

Browse files
committed
Fix incorrect ray type
1 parent a327c87 commit 8f68ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/CoreSIMD.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7050,7 +7050,7 @@ void Ray::NS::Sample_PrincipledNode(const pass_settings_t &ps, const ray_data_t<
70507050
fvec<S> new_p[3];
70517051
offset_ray(surf.P, surf.plane_N, new_p);
70527052

7053-
where(sample_spec_lobe, new_ray.depth) = pack_ray_type(RAY_TYPE_SPECULAR);
7053+
where(sample_coat_lobe, new_ray.depth) = pack_ray_type(RAY_TYPE_SPECULAR);
70547054
where(sample_coat_lobe, new_ray.depth) |=
70557055
mask_ray_depth(ray.depth) + pack_depth(ivec<S>{0}, ivec<S>{1}, ivec<S>{0}, ivec<S>{0});
70567056

0 commit comments

Comments
 (0)