Exemple #1
0
        public object Clone()
        {
            ViewPlane vp = new ViewPlane();
            vp.VRes = VRes;
            vp.HRes = HRes;
            vp.PixelSize = PixelSize;
            vp.gamma = gamma;
            vp.InvGamma = InvGamma;
            vp.Sampler = Sampler;

            return vp;
        }
Exemple #2
0
        public object Clone()
        {
            ViewPlane vp = new ViewPlane();

            vp.VRes      = VRes;
            vp.HRes      = HRes;
            vp.PixelSize = PixelSize;
            vp.gamma     = gamma;
            vp.InvGamma  = InvGamma;
            vp.Sampler   = Sampler;

            return(vp);
        }
Exemple #3
0
        public Camera(
            Tracer tracer,
            ViewPlane viewPlane,
            Vector position,
            Vector target,
            Vector up,
            int maxDepth = 4)
        {
            Position  = position;
            Target    = target;
            Up        = up;
            Tracer    = tracer;
            ViewPlane = viewPlane;
            MaxDepth  = maxDepth;

            UpdateUVW();
        }