<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN"   "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersiveversion='3.0xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='Figure20.14DirectionalLightSunAnimated.x3d'/>
<meta name='creatorcontent='Figure 20.14, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='10 September 2000'/>
<meta name='modifiedcontent='15 September 2002'/>
<meta name='descriptioncontent='A DirectionalLight simulates the sun from sunrise through sunset, animated using multiple interpolators. Compare Figures 20.13a, 13b, 13c, 14.'/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter20-Lighting/Figure20.14DirectionalLightSunAnimated.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent='../../license.html'/>
</head>
<!--

Index for DEF nodes: Clock, LightAmbient, LightColor, LightDirection, SunLight, VAULT
Index for Viewpoint image: Viewpoint_1
-->
<Scene>
<Viewpoint description='Sunlight animationorientation='1 0 0 -0.15position='0 4 10'/>
<!-- Note headlight turned off in NavigationInfo. Most browsers allow user toggling headlight also. -->
<!-- This NavigationInfo node is bound at runtime and overrides the NavigationInfo headlight setting within the Inlined scene. -->
<NavigationInfo headlight='falsetype='"EXAMINE" "ANY"transitionType='"ANIMATE"'/>
<Background groundColor='0 0 0skyColor='0.15 0.15 0.25'/>
<Group>
<!-- SunLight ROUTEs:  [from LightDirection.value_changed to set_direction ] [from LightColor.value_changed to set_color ] [from LightAmbient.value_changed to set_ambientIntensity ] -->
<DirectionalLight DEF='SunLightambientIntensity='0.5color='1 0.6 0direction='-0.8 -0.2 -0.2'/>
<!-- Clock ROUTEs:  [from fraction_changed to LightDirection.set_fraction ] [from fraction_changed to LightColor.set_fraction ] [from fraction_changed to LightAmbient.set_fraction ] -->
<TimeSensor DEF='ClockcycleInterval='10loop='true'/>
<!-- LightDirection ROUTEs:  [from Clock.fraction_changed to set_fraction ] [from value_changed to SunLight.set_direction ] -->
<PositionInterpolator DEF='LightDirectionkey='0 0.1 0.5 0.9 1keyValue='0.8 -0.2 -0.2 0.8 -0.2 -0.2 0 -1 -0.2 -0.8 -0.2 -0.2 -0.8 -0.2 -0.2'/>
<!-- LightColor ROUTEs:  [from Clock.fraction_changed to set_fraction ] [from value_changed to SunLight.set_color ] -->
<ColorInterpolator DEF='LightColorkey='0 0.1 0.5 0.9 1keyValue='1 0.6 0 1 0.6 0 1 0.9 0.7 1 0.3 0.1 1 0.3 0.1'/>
<!-- LightAmbient ROUTEs:  [from Clock.fraction_changed to set_fraction ] [from value_changed to SunLight.set_ambientIntensity ] -->
<ScalarInterpolator DEF='LightAmbientkey='0 0.1 0.5 0.9 1keyValue='0.3 0.3 0.7 0.2 0.2'/>
<Inline DEF='VAULTbboxCenter='0 1 0bboxSize='6 2 6'
  url=' "../Chapter13-PointsLinesFaces/Figure13.16VaultedCeiling.wrl" "http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter13-PointsLinesFaces/Figure13.16VaultedCeiling.wrl" "../Chapter13-PointsLinesFaces/Figure13.16VaultedCeiling.x3d" "http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter13-PointsLinesFaces/Figure13.16VaultedCeiling.wrl" '/>
<Shape>
<Box size='16 0.01 16'/>
<Appearance>
<Material diffuseColor='0.2 0.6 0'/>
</Appearance>
</Shape>
</Group>
<ROUTE fromNode='ClockfromField='fraction_changedtoNode='LightDirectiontoField='set_fraction'/>
<ROUTE fromNode='ClockfromField='fraction_changedtoNode='LightColortoField='set_fraction'/>
<ROUTE fromNode='ClockfromField='fraction_changedtoNode='LightAmbienttoField='set_fraction'/>
<ROUTE fromNode='LightDirectionfromField='value_changedtoNode='SunLighttoField='set_direction'/>
<ROUTE fromNode='LightColorfromField='value_changedtoNode='SunLighttoField='set_color'/>
<ROUTE fromNode='LightAmbientfromField='value_changedtoNode='SunLighttoField='set_ambientIntensity'/>
</Scene>
</X3D>
<!--

Index for DEF nodes: Clock, LightAmbient, LightColor, LightDirection, SunLight, VAULT
Index for Viewpoint image: Viewpoint_1
-->

<!-- Tag color codes: <Node DEF='idName' attribute='value'/> -->