File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
include/nbl/builtin/hlsl/bxdf/transmission Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ struct SThinSmoothDielectric
121121 const spectral_type reflectance = fresnel::thinDielectricInfiniteScatter<spectral_type>(fresnel (interaction.getNdotV (_clamp)));
122122
123123 // we are only allowed one choice for the entire ray, so make the probability a weighted sum
124- const scalar_type reflectionProb = nbl::hlsl::dot<spectral_type>(reflectance, luminosityContributionHint );
124+ const scalar_type reflectionProb = nbl::hlsl::dot<spectral_type>(reflectance, interaction. getLuminosityContributionHint () );
125125
126126 scalar_type rcpChoiceProb;
127127 scalar_type z = u.z;
@@ -161,7 +161,7 @@ struct SThinSmoothDielectric
161161 const spectral_type reflectance = fresnel::thinDielectricInfiniteScatter<spectral_type>(fresnel (interaction.getNdotV (_clamp)));
162162 const spectral_type sampleValue = hlsl::mix (reflectance, hlsl::promote<spectral_type>(1.0 ) - reflectance, transmitted);
163163
164- const scalar_type sampleProb = nbl::hlsl::dot<spectral_type>(sampleValue,luminosityContributionHint );
164+ const scalar_type sampleProb = nbl::hlsl::dot<spectral_type>(sampleValue,interaction. getLuminosityContributionHint () );
165165
166166 const scalar_type _pdf = bit_cast<scalar_type, uint32_t>(numeric_limits<scalar_type>::infinity);
167167 return quotient_pdf_type::create (sampleValue / sampleProb, _pdf);
@@ -172,7 +172,6 @@ struct SThinSmoothDielectric
172172 }
173173
174174 fresnel::Dielectric<spectral_type> fresnel;
175- spectral_type luminosityContributionHint;
176175};
177176
178177}
You can’t perform that action at this time.
0 commit comments