Exemplo n.º 1
0
 /// <summary>
 /// Constructor - Stores the cube's UV coordinates in a Skybox-like wrapper class.
 /// </summary>
 /// <param name="u">The u coordinate in UV space for the cube. Range: [0,1]</param>
 /// <param name="v">The v coordinate in UV space for the cube. Range: [0,1]</param>
 /// <param name="face_index">[0,6) array index; 0=right, 1=left, 2=up, 3=down, 4=front, 5=back</param>
 public CubeUVCoordinates(float u, float v, int face_index)
 {
     uv_variable         = new UVCoordinates(u, v);
     face_index_variable = face_index;
     normalize();
 }
 /// <summary>
 /// Constructor - Stores the octahedron's UV coordinates in a wrapper class.
 /// </summary>
 /// <param name="u">The u coordinate in UV space for the octahedron. Range: [0,1]</param>
 /// <param name="v">The v coordinate in UV space for the octahedron. Range: [0,1]</param>
 public OctahedronUVCoordinates(float u, float v)
 {
     data_variable = new UVCoordinates(u, v);
 }