Exemplo n.º 1
0
 public SkyboxVertex( BoxVertex boxVertex, float s, float t )
     : this(boxVertex.X, boxVertex.Y, boxVertex.Z, s, t)
 {
 }
Exemplo n.º 2
0
 private static void Fill( int faceNumber, BoxVertex[] boxVertices, SkyboxVertex[] vertices, int i0, int i1, int i2, int i3 )
 {
     vertices[faceNumber*4 + 0] = new SkyboxVertex( boxVertices[i0], 0, 0 );
     vertices[faceNumber*4 + 1] = new SkyboxVertex( boxVertices[i1], 1, 0 );
     vertices[faceNumber*4 + 2] = new SkyboxVertex( boxVertices[i2], 1, 1 );
     vertices[faceNumber*4 + 3] = new SkyboxVertex( boxVertices[i3], 0, 1 );
 }