Table of contents | Chapter index | Previous slide | Next slide | 428 |
DEF LightSwitch TouchSensor { } DEF LampLight SpotLight { . . . } DEF BulbMaterial Material { . . . } DEF Toggle Script { . . . } DEF ColorSelector Script { . . . } ROUTE LightSwitch.isActive TO Toggle.set_active ROUTE Toggle.on_changed TO LampLight.set_on ROUTE Toggle.on_changed TO ColorSelector.set_selection ROUTE ColorSelector.color_changed TO BulbMaterial.set_emissiveColor