public SamplerRenderer(Sampler sampler, Camera camera,
     SurfaceIntegrator surfaceIntegrator,
     VolumeIntegrator volumeIntegrator)
 {
     _sampler = sampler;
     _camera = camera;
     _surfaceIntegrator = surfaceIntegrator;
     _volumeIntegrator = volumeIntegrator;
 }
Exemple #2
0
 public static Sampler MakeSampler(string name, ParamSet parameters, Film film, Camera camera)
 {
     switch (name)
     {
         case "stratified":
         {
             var jitter = parameters.FindBoolean("jitter", true);
             var xSamples = parameters.FindInt32("xsamples", 2);
             var ySamples = parameters.FindInt32("ysamples", 2);
             var sampleExtent = film.SampleExtent;
             return new StratifiedSampler(sampleExtent, xSamples, ySamples, jitter, 
                 camera.ShutterOpen, camera.ShutterClose);
             }
         default:
             throw new ArgumentException("Unknown sampler: " + name);
     }
 }
Exemple #3
0
 public virtual void PreProcess(Scene scene, Camera camera, Renderer renderer)
 {
     
 }