home *** CD-ROM | disk | FTP | other *** search
/ Late Night VRML 2.0 with Java CD-ROM / code.zip / Ch10 / 5041117.wrl < prev    next >
Text File  |  1997-01-14  |  678b  |  26 lines

  1. #VRML V2.0 utf8
  2. #Example 11.17 - Day and Night Background Example
  3. #By Chris Fouts, Silicon Graphics, Inc.
  4. DEF HeadGroup Group {
  5.   children [
  6.     DEF BoxShape Shape {
  7.       geometry DEF TheBox Box {}
  8.     }
  9.     DEF Touch TouchSensor {}
  10.     DEF Day Background {
  11.       groundColor [ 0.14 0.28 0.00, 0.09 0.11 0.00 ]
  12.       groundAngle [ 1.5708 ]
  13.       skyColor [ 1 1 0, 1 1 0.5, 0 0 .5, 0.2 1 1 ]
  14.       skyAngle [ .05, .1, 2 ]
  15.     }
  16.     DEF Night Background {
  17.       groundColor [ 0.02 0.1 0.00, 0.0 0.05 0.00 ]
  18.       groundAngle [ 1.5708 ]
  19.       skyColor [ 1 1 1, 1 1 1, 0 0 .1, 0 0.1 0.2 ]
  20.       skyAngle [ .03, .03, 1.5708 ]
  21.     }
  22.   ]
  23.   ROUTE Touch.isOver TO Night.set_bind
  24. }
  25. #EOF
  26.