home *** CD-ROM | disk | FTP | other *** search
/ Late Night VRML 2.0 with Java CD-ROM / code.zip / Ch10 / 5041111.wrl < prev    next >
Text File  |  1996-12-17  |  575b  |  29 lines

  1. #VRML V2.0 utf8
  2. #Example 11.11 - TextureTransform - Translation Example
  3. NavigationInfo {
  4.   type "EXAMINE"
  5. }
  6. Viewpoint {
  7.   position  -1.995 1.668 4.105
  8.   orientation       -0.639 -0.754 -0.153  0.617
  9.   fieldOfView       0.785
  10. }
  11. Group {
  12.   children  Shape {
  13.     appearance  Appearance {
  14.       material     Material {
  15.         ambientIntensity  0.25
  16.         diffuseColor      0.8 0.8 0.8
  17.       }
  18.       texture ImageTexture {
  19.         url     "mandrill.jpg"
  20.       }
  21.       textureTransform TextureTransform {
  22.         translation 0.5 0.5
  23.       }
  24.     }
  25.     geometry Box { }
  26.   }
  27. }
  28. #EOF
  29.