/Users/lyon/j4p/src/graphics/raytracers/tracer/primatives/Surface.java

1    package graphics.raytracers.tracer.primatives; 
2     
3    import graphics.raytracers.tracer.geometry.Vector3d; 
4     
5    public class Surface { 
6        public Vector3d color; 
7        public double kd; 
8        public double ks; 
9        public double shine; 
10       public double kt; 
11       public double ior; 
12    
13       public Surface() { 
14           color = new Vector3d(1, 0, 0); 
15           kd = 1.0; 
16           ks = 0.0; 
17           shine = 0.0; 
18           kt = 0.0; 
19           ior = 1.0; 
20       } 
21    
22       public String toString() { 
23           return "Surface { color=" + color + "}"; 
24       } 
25   } 
26