示例#1
0
		public UV Lerped(UV dest, float t)
		{
			float lerpedU = (dest.U - U) * t + U;
			float lerpedV = (dest.V - V) * t + V;

			return new UV(lerpedU, lerpedV);
		}
示例#2
0
		public Vertex(Vector3D position, Vector3D normal, Vector4D tangent, UV uv1, UV uv2, Color4 color)
		{
			Position = position;
			Normal = normal;
			Tangent = tangent;
			UV1 = uv1;
			UV2 = uv2;
			Color = color;
		}
示例#3
0
		public Vertex(Vertex vertex)
		{
			Position = vertex.Position;
			Normal = vertex.Normal;
			Tangent = vertex.Tangent;
			UV1 = vertex.UV1;
			UV2 = vertex.UV2;
			Color = vertex.Color;
		}
示例#4
0
		public UV(UV uv)
		{
			U = uv.U;
			V = uv.V;
		}