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