本文整理汇总了C++中SpectrumStack::size方法的典型用法代码示例。如果您正苦于以下问题:C++ SpectrumStack::size方法的具体用法?C++ SpectrumStack::size怎么用?C++ SpectrumStack::size使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SpectrumStack
的用法示例。
在下文中一共展示了SpectrumStack::size方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: compute_outgoing_radiance_combined_sampling_low_variance
void DirectLightingIntegrator::compute_outgoing_radiance_combined_sampling_low_variance(
SamplingContext& sampling_context,
const Dual3d& outgoing,
Spectrum& radiance,
SpectrumStack& aovs) const
{
compute_outgoing_radiance_bsdf_sampling(
sampling_context,
MISPower2,
outgoing,
radiance,
aovs);
Spectrum radiance_light_sampling;
SpectrumStack aovs_light_sampling(aovs.size());
compute_outgoing_radiance_light_sampling_low_variance(
sampling_context,
MISPower2,
outgoing,
radiance_light_sampling,
aovs_light_sampling);
radiance += radiance_light_sampling;
aovs += aovs_light_sampling;
}
示例2: sample_bsdf_and_lights_low_variance
void DirectLightingIntegrator::sample_bsdf_and_lights_low_variance(
SamplingContext& sampling_context,
Spectrum& radiance,
SpectrumStack& aovs)
{
sample_bsdf(
sampling_context,
DirectLightingIntegrator::mis_power2,
radiance,
aovs);
Spectrum radiance_light_sampling;
SpectrumStack aovs_light_sampling(aovs.size());
sample_lights_low_variance(
sampling_context,
DirectLightingIntegrator::mis_power2,
radiance_light_sampling,
aovs_light_sampling);
radiance += radiance_light_sampling;
aovs += aovs_light_sampling;
}