Exemplo n.º 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;
        }
Exemplo n.º 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);
        }
Exemplo n.º 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();
        }