Events

Light When Rollover

#VRML V2.0 utf8

DirectionalLight { intensity .2 }
NavigationInfo { headlight FALSE }

Group {
   children [
      DEF TOUCH TouchSensor {}
      Shape { 
	 appearance Appearance { material Material {} }
	 geometry Sphere {}
      }		
     ]
}

DEF LIGHT DirectionalLight { 
   direction 0 -1 -1 
   color 1 0 0
   on FALSE
}

ROUTE TOUCH.isOver TO LIGHT.on


mrl