示例#1
0
 public SamplerRenderer(Sampler sampler, Camera camera,
     SurfaceIntegrator surfaceIntegrator,
     VolumeIntegrator volumeIntegrator)
 {
     _sampler = sampler;
     _camera = camera;
     _surfaceIntegrator = surfaceIntegrator;
     _volumeIntegrator = volumeIntegrator;
 }
示例#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();
        }
示例#3
0
 public virtual void RequestSamples(Sampler sampler, Sample sample, Scene scene)
 {
     
 }