home *** CD-ROM | disk | FTP | other *** search
/ Using VRML (Special Edition) / Special_Edition_Using_VRML_CDROM_Que_1996.iso / webpages / objects / chap22 / farm / 01eg03.wrl < prev    next >
Text File  |  1995-12-22  |  607b  |  26 lines

  1. #VRML V1.0 ascii
  2.  
  3. Separator {
  4.     DEF Forest Separator {
  5.         Transform { translation 2.5 0 2.5 }
  6.         WWWInline { name "forest.wrl" }
  7.     }
  8.     DEF Grass Separator {
  9.         Texture2 { filename "grass01.gif" }
  10.         TextureCoordinate2 { point [ 0 0, 1 0, 1 1, 0 1 ] }
  11.         Texture2Transform { scaleFactor 25 25 }
  12.         Material { diffuseColor 0 1 0 }
  13.         Coordinate3 { point [ 0 0 0, 50 0 0, 50 0 50, 0 0 50 ] }
  14.         IndexedFaceSet {
  15.             coordIndex [ 0, 1, 2, 3, -1 ]
  16.             textureCoordIndex [ 0, 1, 2, 3, -1 ]
  17.         }
  18.     }
  19.     DEF Barn Separator {
  20.         Transform {
  21.             scaleFactor .02 .02 .02
  22.         }
  23.         WWWInline { name "barn.wrl" }
  24.     }
  25. }
  26.