Skip to content

Commit 2a7cf4b

Browse files
committed
fix pdf call
1 parent 3519866 commit 2a7cf4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/builtin/hlsl/bxdf/base/cook_torrance_base.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ struct SCookTorrance
334334
if (!impl::checkValid<fresnel_type, IsBSDF>::template __call<sample_type, Interaction, MicrofacetCache>(_f, _sample, interaction, cache))
335335
return scalar_type(0.0);
336336

337-
scalar_type _pdf = __pdf<anisotropic_interaction_type, anisocache_type>(_sample, interaction, cache);
337+
scalar_type _pdf = __pdf<Interaction, MicrofacetCache>(_sample, interaction, cache);
338338
return hlsl::mix(scalar_type(0.0), _pdf, _pdf < bit_cast<scalar_type>(numeric_limits<scalar_type>::infinity));
339339
}
340340

0 commit comments

Comments
 (0)