@@ -195,7 +195,6 @@ NBL_CONCEPT_END(
195195 ((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((iso.getNdotV2 ()), ::nbl::hlsl::is_same_v, typename T::scalar_type))
196196 ((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((iso.getPathOrigin ()), ::nbl::hlsl::is_same_v, PathOrigin))
197197 ((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((iso.getLuminosityContributionHint ()), ::nbl::hlsl::is_same_v, typename T::spectral_type))
198- ((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((iso.getPrefixThroughputWeights ()), ::nbl::hlsl::is_same_v, typename T::spectral_type))
199198 ((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((T::create (normV,normN)), ::nbl::hlsl::is_same_v, T))
200199 ((NBL_CONCEPT_REQ_TYPE_ALIAS_CONCEPT)(ray_dir_info::Basic, typename T::ray_dir_info_type))
201200);
@@ -223,7 +222,6 @@ struct SIsotropic
223222 retval.NdotV = nbl::hlsl::dot<vector3_type>(retval.N, retval.V.getDirection ());
224223 retval.NdotV2 = retval.NdotV * retval.NdotV;
225224 retval.luminosityContributionHint = hlsl::promote<spectral_type>(1.0 );
226- retval.throughputWeights = hlsl::promote<spectral_type>(1.0 );
227225
228226 return retval;
229227 }
@@ -238,19 +236,13 @@ struct SIsotropic
238236
239237 PathOrigin getPathOrigin () NBL_CONST_MEMBER_FUNC { return PathOrigin::PO_SENSOR; }
240238 spectral_type getLuminosityContributionHint () NBL_CONST_MEMBER_FUNC { return luminosityContributionHint; }
241- spectral_type getPrefixThroughputWeights () NBL_CONST_MEMBER_FUNC
242- {
243- spectral_type prefixThroughputWeights = luminosityContributionHint * throughputWeights;
244- return prefixThroughputWeights / math::lpNorm<spectral_type,1 >(prefixThroughputWeights);
245- }
246239
247240 RayDirInfo V;
248241 vector3_type N;
249242 scalar_type NdotV;
250243 scalar_type NdotV2;
251244
252245 spectral_type luminosityContributionHint;
253- spectral_type throughputWeights; // product of all quotients so far
254246};
255247
256248#define NBL_CONCEPT_NAME Anisotropic
@@ -337,7 +329,6 @@ struct SAnisotropic
337329 scalar_type getNdotV2 () NBL_CONST_MEMBER_FUNC { return isotropic.getNdotV2 (); }
338330 PathOrigin getPathOrigin () NBL_CONST_MEMBER_FUNC { return isotropic.getPathOrigin (); }
339331 spectral_type getLuminosityContributionHint () NBL_CONST_MEMBER_FUNC { return isotropic.getLuminosityContributionHint (); }
340- spectral_type getPrefixThroughputWeights () NBL_CONST_MEMBER_FUNC { return isotropic.getPrefixThroughputWeights (); }
341332
342333 vector3_type getT () NBL_CONST_MEMBER_FUNC { return T; }
343334 vector3_type getB () NBL_CONST_MEMBER_FUNC { return B; }
0 commit comments