Beispiel #1
0
 public Camera()
 {
     cameraToWorld = Matrix4d.Identity;
     WorldToCamera = Matrix4d.Identity;
     Sensor = new Sensor();
     Lens = new ThinLens();
 }
Beispiel #2
0
 public LightTracer()
 {
     LightSourcePosition = new Vector3d(0, 0, -20);
     Sensor = new Sensor()
     {
         Shift = new Vector3d(0, 0, 10),
         Width = 4,
         Tilt = new Vector3d(0, 0, 0)
     };
     SampleCount = 1000;
     ThinLens = new ThinLens(10, 1);
     //Lens = ThinLens;
     LensWithTwoStops vignettingLens = new LensWithTwoStops() { Lens = ThinLens };
     vignettingLens.BackStop.Z = -1;
     vignettingLens.FrontStop.Z = 1;
     Lens = vignettingLens;
     LightIntensity = 0.5f;
 }