示例#1
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;
		}
示例#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_Light(warp_Vector direction, int diffuse)
 {
     v = direction.getClone();
     v.normalize();
     this.diffuse = diffuse;
 }
示例#5
0
 public warp_Light(warp_Vector direction)
 {
     v = direction.getClone();
     v.normalize();
 }
示例#6
0
		public warp_Vertex(warp_Vector ppos, float u, float v)
		{
			pos=ppos.getClone();
			this.u=u;
			this.v=v;
		}
示例#7
0
		public warp_Vertex(warp_Vector ppos)
		{
			pos=ppos.getClone();
		}
示例#8
0
		public warp_Light(warp_Vector direction, int diffuse)
		{
			v = direction.getClone();
			v.normalize();
			this.diffuse = diffuse;
		}
示例#9
0
		public warp_Light(warp_Vector direction)
		{
			v = direction.getClone();
			v.normalize();
		}
示例#10
0
 public warp_Vertex(warp_Vector ppos, float u, float v)
 {
     pos    = ppos.getClone();
     this.u = u;
     this.v = v;
 }
示例#11
0
 public warp_Vertex(warp_Vector ppos)
 {
     pos = ppos.getClone();
 }