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

  1. #VRML V2.0 utf8
  2. # Example 11.2 - Repeating Texture Test
  3. NavigationInfo {
  4.   type EXAMINE
  5. }
  6. Viewpoint {
  7.   position   0 0 10
  8.   orientation       0 0 1  0
  9.   fieldOfView       0.785398
  10. }
  11. Group {
  12.   children  [
  13.     Shape   {
  14.       appearance   Appearance {
  15.         material     Material {
  16.           ambientIntensity  0.2
  17.           diffuseColor      0.8 0.5 0.15
  18.           specularColor     0.3 0.1 0
  19.           shininess  0.8
  20.         }
  21.         texture      ImageTexture {
  22.           url  "wood-1.jpg"
  23.         }
  24.         textureTransform TextureTransform {
  25.           scale      3 3
  26.         }
  27.       }
  28.       geometry      Box {
  29.         size 4 4 4
  30.       }
  31.     }
  32.     NavigationInfo {
  33.       type EXAMINE
  34.     }
  35.   ]
  36. }
  37. #EOF
  38.