<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://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
='
https://www.web3d.org/specifications/x3d-3.2.xsd
'
>
<head>
</head>
<!--
Index for DEF nodes:
AppearanceBlue,
AppearanceGreen,
AppearanceRed,
AxesSwitch,
BackgroundNode,
DirectionalLightNode,
LabelStyle,
LightDirectionCoordinateNode,
LightDirectionLineMaterial,
LightDirectionVectorSwitch,
MaterialNode,
ShapeNode,
ViewpointNode,
xAxis,
yAxis,
zAxis
Index for Viewpoint node:
ViewpointNode
-->
<Scene>
<WorldInfo title='MaterialExample.x3d'/>
<Viewpoint DEF='ViewpointNode' description='default' position='0 0 4'/>
<NavigationInfo headlight='false' type='"EXAMINE"'/>
<Background DEF='BackgroundNode'/>
<DirectionalLight DEF='DirectionalLightNode' direction='-0.707 0 -0.707'/>
<Shape DEF='ShapeNode'>
<Sphere/>
<Appearance>
</Appearance>
</Shape>
<Switch DEF='AxesSwitch' whichChoice='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 0' emissiveColor='0.8 0 0'/>
</Appearance>
</Shape>
<Transform translation='1.4 0 0'>
<Billboard>
<Shape>
<Text string='"x"'>
<FontStyle DEF='LabelStyle' justify='"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 0' emissiveColor='0 0.8 0'/>
</Appearance>
</Shape>
<Transform translation='0 1.4 0'>
<Billboard axisOfRotation='0 0 0'>
</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 0' emissiveColor='0 0 0.8'/>
</Appearance>
</Shape>
<Transform translation='0 0 1.4'>
<Billboard axisOfRotation='0 0 0'>
</Billboard>
</Transform>
</Group>
</Group>
</Switch>
<Switch DEF='LightDirectionVectorSwitch' whichChoice='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 here!!! -->
<Coordinate DEF='LightDirectionCoordinateNode' point='0.707 0 0.707 0 0 0'/>
</IndexedLineSet>
<Appearance>
</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 node:
ViewpointNode
-->
-->
<!--
Online at
https://www.web3d.org/x3d/content/examples/Basic/development/MaterialExampleIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/development/MaterialExample.x3d
-->
<!--
Color legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->