VRML example: Simple texture mapping

This example shows how to texture map an object.

#VRML V1.0 ascii

Separator {
   Material {
      diffuseColor 1.0 1.0 1.0
      specularColor 0.8 0.8 0.8
   }
   Texture2 {
      filename "number.gif"
   }
Loading a texture map for the whole object. The texture map is done by default method.

   Coordinate3 {
      point [
         0    5   0,
        -2.5  0  -2.5,
         2.5  0  -2.5,
         2.5  0   2.5,
        -2.5  0   2.5
      ]
   }
   IndexedFaceSet {
      coordIndex [
         0, 4, 3, -1,
         0, 3, 2, -1,
         0, 2, 1, -1,
         0, 1, 4, -1,
         1, 3, 4, -1,
         1, 2, 3, -1
      ]
   }
}