public BSDFSampleOffsets(int count, Sample sample) { nSamples = count; ComponentOffset = sample.Add1D (nSamples); DirOffset = sample.Add2D (nSamples); }
public override void RequestSamples(ISampler sampler, Sample sample, Scene scene) { TauSampleOffset = sample.Add1D (1); ScatterSampleOffset = sample.Add1D (1); }