Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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);
        }
Beispiel #4
0
 public warp_Vertex(warp_Vector ppos)
 {
     pos = ppos.getClone();
 }
Beispiel #5
0
 public warp_Light(warp_Vector direction, int diffuse)
 {
     v = direction.getClone();
     v.normalize();
     this.diffuse = diffuse;
 }
Beispiel #6
0
 public warp_Light(warp_Vector direction)
 {
     v = direction.getClone();
     v.normalize();
 }