예제 #1
0
 public warp_Vertex(warp_Vector ppos, warp_Vector norm, float u, float v)
 {
     pos    = ppos.getClone();
     n      = norm.getClone();
     this.u = u;
     this.v = v;
 }
예제 #2
0
 public warp_Light(warp_Vector direction, int diffuse, int specular, int highlightSheen, int highlightSpread)
 {
     v = direction.getClone();
     v.normalize();
     this.diffuse         = diffuse;
     this.specular        = specular;
     this.highlightSheen  = highlightSheen;
     this.highlightSpread = highlightSpread;
 }
예제 #3
0
        public warp_Vertex getClone()
        {
            warp_Vertex newVertex = new warp_Vertex();

            newVertex.pos = pos.getClone();
            newVertex.n   = n.getClone();
            newVertex.u   = u;
            newVertex.v   = v;

            return(newVertex);
        }
예제 #4
0
 public warp_Vertex(warp_Vector ppos)
 {
     pos = ppos.getClone();
 }
예제 #5
0
 public warp_Light(warp_Vector direction, int diffuse)
 {
     v = direction.getClone();
     v.normalize();
     this.diffuse = diffuse;
 }
예제 #6
0
 public warp_Light(warp_Vector direction)
 {
     v = direction.getClone();
     v.normalize();
 }