<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive' version='3.3'
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance'
xsd:noNamespaceSchemaLocation
='
https://www.web3d.org/specifications/x3d-3.3.xsd
'>
<head>
</head>
<!--
-->
<Scene>
<![CDATA[
ecmascript:
function whichBackground (inputValue)
{
if (whichBackground == 0) bind0 = true;
else if (whichBackground == 1) bind1 = true;
else if (whichBackground == 2) bind2 = true;
else if (whichBackground == 3) bind3 = true;
}
]]>
</Script>
<ROUTE fromNode='BackgroundSequencer' fromField='value_changed' toNode='SelectorScript' toField='whichBackground'/>
<!-- ROUTE information for SunRiseSky node:
[from SelectorScript.bind0 to set_bind
]
-->
<Background DEF='SunRiseSky' groundAngle='0.75 1.2 1.25 1.26 1.5 1.57' groundColor='0.133333 0.419608 0 0.36 0.1 0 1 0.74 0.4 1 0.74 0.4 0 0 0.5 0 0 0.2 0 0.231373 0.380392' skyAngle='0.5 0.7 1.35 1.45 1.57' skyColor='0 0.035 0.34 0 0.015 0.44 0 0.05 0.5 0 0.1 0.6 0.44 0.8 1 1 1 0.7'/>
<!-- ROUTE information for HighNoonSky node:
[from SelectorScript.bind1 to set_bind
]
-->
<Background DEF='HighNoonSky' groundAngle='0.75 1.2 1.25 1.26 1.57' groundColor='0.133333 0.419608 0 0.36 0.1 0 1 0.74 0.4 1 0.74 0.4 0 0.2 0.75 0 0.1 0.5' skyAngle='0.05 0.07 1.57' skyColor='1 1 0.2 1 1 0 0.36 0.63 1 0 0.4 1'/>
<!-- ROUTE information for SunsetSky node:
[from SelectorScript.bind2 to set_bind
]
-->
<Background DEF='SunsetSky' groundAngle='0.75 1.2 1.25 1.26 1.57' groundColor='0.133333 0.419608 0 0.36 0.1 0 1 0.74 0.4 1 0.74 0.4 0 0 0.5 0 0 0.2' skyAngle='0.5 0.7 1.2 1.4 1.57' skyColor='0 0 0.38 0 0 0.68 0.5 0.2 1 0.5 0.2 1 1 0.3 0 1 0.2 0.8'/>
<!-- ROUTE information for NightSky node:
[from SelectorScript.bind3 to set_bind
]
-->
<Background DEF='NightSky' groundAngle='0.75 1.2 1.25 1.26 1.57' groundColor='0.133333 0.419608 0 0.36 0.1 0 1 0.74 0.4 1 0.74 0.4 0 0 0.5 0 0 0.2' skyAngle='0.03 0.05 1.57' skyColor='1 1 1 0.8 0.8 0.8 0.1 0.1 0.1 0 0 0'/>
<ROUTE fromNode='SelectorScript' fromField='bind0' toNode='SunRiseSky' toField='set_bind'/>
<ROUTE fromNode='SelectorScript' fromField='bind1' toNode='HighNoonSky' toField='set_bind'/>
<ROUTE fromNode='SelectorScript' fromField='bind2' toNode='SunsetSky' toField='set_bind'/>
<ROUTE fromNode='SelectorScript' fromField='bind3' toNode='NightSky' toField='set_bind'/>
</Scene>
</X3D>
<!--
-->
<!--
Online at https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter11LightingEnvironmentalEffects/BackgroundSelectorIndex.html
-->
<!--
Color key:
<X3dNode
DEF='idName' field='value'/>
matches
<XmlElement
DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources and X3D Scene Authoring Hints.
-->