<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersive'  version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-3.0.xsd ' >
<head>
<meta name='titlecontent=' WallLamp.x3d '/>
<meta name='descriptioncontent='A reusable wall lamp: prototype using an inverted cone with embedded PointLight.'/>
<meta name='creatorcontent='Frederic Roussille'/>
<meta name='createdcontent='1 April 2001'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/WallLamp.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Index for DEF nodes: lamp_color, lamp_light

Index for ProtoDeclare definition: WallLamp
-->
<Scene>
<WorldInfo title='WallLamp.x3d'/>
<ProtoDeclare name='WallLamp'>
<ProtoInterface>
<field name='lampColortype='SFColorvalue='0 0 1accessType='inputOutput'/>
<field name='lightColortype='SFColorvalue='0.7 0.5 0accessType='inputOutput'/>
<field name='lightIntensitytype='SFFloatvalue='0.8accessType='inputOutput'/>
<field name='lightAttenuationtype='SFVec3fvalue='0 0.6 0accessType='inputOutput'/>
<field name='radiustype='SFFloatvalue='50accessType='inputOutput'/>
<field name='lightLocationtype='SFVec3fvalue='0 0 5accessType='inputOutput'/>
</ProtoInterface>
<ProtoBody>
<Group>
<Shape>
<Appearance>
<Material DEF='lamp_color'>
<IS>
<connect nodeField='diffuseColorprotoField='lampColor'/>
</IS>
</Material>
</Appearance>
<IndexedFaceSet creaseAngle='1.57solid='falsecoordIndex='0 9 1 -1 1 9 2 -1 2 9 3 -1 3 9 4 -1 4 9 5 -1 5 9 6 -1 6 9 7 -1 7 9 8 -1 9 0 8 -1'>
<Coordinate point='-1 0 0 -0.92 0 0.38 -0.71 0 0.71 -0.38 0 0.92 0 0 1 0.38 0 0.92 0.71 0 0.71 0.92 0 0.38 1 0 0 0 -3 0'/>
</IndexedFaceSet>
</Shape>
<PointLight DEF='lamp_light'>
<IS>
<connect nodeField='colorprotoField='lightColor'/>
<connect nodeField='intensityprotoField='lightIntensity'/>
<connect nodeField='attenuationprotoField='lightAttenuation'/>
<connect nodeField='radiusprotoField='radius'/>
<connect nodeField='locationprotoField='lightLocation'/>
</IS>
</PointLight>
</Group>
</ProtoBody>
</ProtoDeclare>
<ProtoInstance name='WallLamp'/>
</Scene>
</X3D>
<!--

to top <!-- Index for DEF nodes: lamp_color, lamp_light

Index for ProtoDeclare definition: WallLamp
-->

Event Graph ROUTE Table with 0 ROUTE total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.


ProtoInstance
WallLamp
No ROUTE connection found for output from this node.
Contains SFNode/MFNode field with indirect access to other nodes. 


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/WallLampIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/StudentProjects/WallLamp.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)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->