public SamplerRenderer(Sampler sampler, Camera camera,
     SurfaceIntegrator surfaceIntegrator,
     VolumeIntegrator volumeIntegrator)
 {
     _sampler = sampler;
     _camera = camera;
     _surfaceIntegrator = surfaceIntegrator;
     _volumeIntegrator = volumeIntegrator;
 }
Exemple #2
0
        public Sample(Sampler sampler, SurfaceIntegrator surfaceIntegrator,
            VolumeIntegrator volumeIntegrator, Scene scene)
        {
            Num1D = new List<int>();
            Num2D = new List<int>();

            if (surfaceIntegrator != null)
                surfaceIntegrator.RequestSamples(sampler, this, scene);
            if (volumeIntegrator != null)
                volumeIntegrator.RequestSamples(sampler, this, scene);
            AllocateSampleMemory();
        }