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

  1. #VRML V2.0 utf8
  2. #Example 11.14 - TextureTransform - Center 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.         center 0.5 0.5
  23.         rotation 0.785398
  24.       }
  25.     }
  26.     geometry Box { }
  27.   }
  28. }
  29. #EOF
  30.