示例#1
0
 public World()
 {
     Camera = null;
     BackgroundColor = new RGBColor();
     Tracer = null;
     AmbientLight=new Ambient();
 }
示例#2
0
        public ShadeRec(World world)
        {
            HasHitObject  = false;
            Hitpoint      = new Point3d();
            Normal        = new Normal();
            LocalHitPoint = new Point3d();
            Ray           = new Ray();
            Depth         = 0;
            Direction     = new Vector3d();
            T             = 0;

            //Chapter 3 only
            Color = new RGBColor(0, 0, 0); //Black

            World = world;
        }
示例#3
0
        public ShadeRec(World world)
        {
            HasHitObject = false;
            Hitpoint = new Point3d();
            Normal = new Normal();
            LocalHitPoint = new Point3d();
            Ray=new Ray();
            Depth = 0;
            Direction = new Vector3d();
            T = 0;

            //Chapter 3 only
            Color = new RGBColor(0, 0, 0); //Black

            World = world;
        }
示例#4
0
 public void DisplayPixel(int row, int col, RGBColor color)
 {
     throw new NotImplementedException();
 }
示例#5
0
 public void DisplayPixel(int row, int col, RGBColor color)
 {
     throw new NotImplementedException();
 }