<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "http://www.web3d.org/specifications/x3d-3.2.dtd">
<X3D profile='Immersive' version='3.2 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' http://www.web3d.org/specifications/x3d-3.2.xsd '>
<head>
<meta name='titlecontent='MaterialExample.x3d'/>
<meta name='descriptioncontent='Material node example for X3D-Edit MaterialEditor, which uses Scene Access Interface (SAI) externally to select/deselect different shapes, axes and lights while modifying Material values.'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='createdcontent='17 December 2006'/>
<meta name='modifiedcontent='6 September 2010'/>
<meta name='subjectcontent='X3D-Edit example'/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/Basic/development/MaterialExample.x3d '/>
<meta name='referencecontent='src/www.web3d.org/x3d/tools/X3dEdit3.3/X3D/src/org/web3d/x3d/templates/MaterialExample.x3d'/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<Viewpoint DEF='ViewpointNodedescription='defaultposition='0 0 4'/>
<NavigationInfo headlight='falsetype='"EXAMINE"'/>
<Background DEF='BackgroundNode'/>
<DirectionalLight DEF='DirectionalLightNodedirection='-0.707 0 -0.707'/>
<Shape DEF='ShapeNode'>
<Sphere/>
<Appearance>
<Material DEF='MaterialNode'/>
</Appearance>
</Shape>
<Switch DEF='AxesSwitchwhichChoice='0'>
<Group>
<Group DEF='xAxis'>
<Shape>
<IndexedLineSet coordIndex='0 1'>
<Coordinate point='0 0 0 1.25 0 0'/>
</IndexedLineSet>
<Appearance DEF='AppearanceRed'>
<Material diffuseColor='0 0 0emissiveColor='0.8 0 0'/>
</Appearance>
</Shape>
<Transform translation='1.4 0 0'>
<Billboard>
<Shape>
<Text string='"x"'>
<FontStyle DEF='LabelStylejustify='"MIDDLE" "MIDDLE"size='0.3'/>
</Text>
<Appearance USE='AppearanceRed'/>
</Shape>
</Billboard>
</Transform>
</Group>
<Group DEF='yAxis'>
<Shape>
<IndexedLineSet coordIndex='0 1'>
<Coordinate point='0 0 0 0 1.25 0'/>
</IndexedLineSet>
<Appearance DEF='AppearanceGreen'>
<Material diffuseColor='0 0 0emissiveColor='0 0.8 0'/>
</Appearance>
</Shape>
<Transform translation='0 1.4 0'>
<Billboard axisOfRotation='0 0 0'>
<Shape>
<Text string='"y"'>
<FontStyle USE='LabelStyle'/>
</Text>
<Appearance USE='AppearanceGreen'/>
</Shape>
</Billboard>
</Transform>
</Group>
<Group DEF='zAxis'>
<Shape>
<IndexedLineSet coordIndex='0 1'>
<Coordinate point='0 0 0 0 0 1.25'/>
</IndexedLineSet>
<Appearance DEF='AppearanceBlue'>
<Material diffuseColor='0 0 0emissiveColor='0 0 0.8'/>
</Appearance>
</Shape>
<Transform translation='0 0 1.4'>
<Billboard axisOfRotation='0 0 0'>
<Shape>
<Text string='"z"'>
<FontStyle USE='LabelStyle'/>
</Text>
<Appearance USE='AppearanceBlue'/>
</Shape>
</Billboard>
</Transform>
</Group>
</Group>
</Switch>
<Switch DEF='LightDirectionVectorSwitchwhichChoice='0'>
<Transform scale='1.25 1.25 1.25'>
<Shape>
<IndexedLineSet coordIndex='0 1'>
<!-- negate direction-vector values so that line approaches from light direction towards origin -->
<Coordinate DEF='LightDirectionCoordinateNodepoint='0.707 0 0.707 0 0 0'/>
</IndexedLineSet>
<Appearance>
<Material DEF='LightDirectionLineMaterialdiffuseColor='0 0 0emissiveColor='1 1 1'/>
</Appearance>
</Shape>
</Transform>
</Switch>
</Scene>
</X3D>
<!--

Index for DEF nodes : AppearanceBlue, AppearanceGreen, AppearanceRed, AxesSwitch, BackgroundNode, DirectionalLightNode, LabelStyle, LightDirectionCoordinateNode, LightDirectionLineMaterial, LightDirectionVectorSwitch, MaterialNode, ShapeNode, ViewpointNode, xAxis, yAxis, zAxis

Index for Viewpoint image : ViewpointNode
-->

<!-- 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)
-->

<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->