Simple Texture Coords

#VRML V2.0 utf8

Transform {
   translation -1.25 0 0
   children Shape {
      appearance DEF FACE_TXTR Appearance {
	 texture ImageTexture { url "Textures/imPei.jpg" }
      }
      geometry IndexedFaceSet {
	 solid FALSE
	 coord DEF SQUARE_PNTS Coordinate { 
	    point [ 1 1 0, -1 1 0, -1 -1 0, 1 -1 0 ]
	 }
	 coordIndex [ 0 1 2 3 ]
	 texCoord TextureCoordinate { 
	    point [ 1 1, 0 1, 0 0, 1 0 ] 
	 }
	 texCoordIndex [ 0 1 2 3 ]
      }	    
   }
}

Transform {
   translation 1.25 0 0
   children Shape {
      appearance USE FACE_TXTR
      geometry IndexedFaceSet {
	 solid FALSE
	 coord USE SQUARE_PNTS
	 coordIndex [ 0 1 2 3 ]
	 texCoord TextureCoordinate { 
	    point [ .75 .75, .25 .75, .25 .25, .75 .25 ] 
	 }
	 texCoordIndex [ 0 1 2 3 ]
      }	    
   }
}

Background { skyColor 1 1 1 }
Viewpoint { position 0 0 4 }
NavigationInfo { type "EXAMINE" }



mrl