<?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>
<component level='1name='Shaders'/>
<meta name='titlecontent=' SimpleShader.x3d '/>
<meta name='descriptioncontent='Simple shader example'/>
<meta name='creatorcontent='John Stewart'/>
<meta name='translatorcontent='Holger Seelig, John Carlson, Don Brutzman and Jeff Malnick'/>
<meta name='createdcontent='26 May 2009'/>
<meta name='translatedcontent='15 October 2009'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='referencecontent=' http://www.opengl.org/wiki/Fragment_Shader '/>
<meta name='referencecontent=' http://www.opengl.org/wiki/http://www.opengl.org/wiki/Vertex_Shader '/>
<meta name='referencecontent=' https://www.web3d.org/x3d/wiki/index.php/X3D_Plugfest '/>
<meta name='subjectcontent='X3D shader example'/>
<meta name='referencecontent='originals/simpleShader.x3dv'/>
<meta name='referencecontent=' ShaderTutorialInstantReality.pdf '/>
<meta name='generatorcontent='Titania V3.0.3, http://titania.create3000.de'/>
<meta name='commentcontent='World of Titania'/>
<meta name='outputStylecontent='nicest'/>
<meta name=' warning content=' under development '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/Shaders/SimpleShader.x3d '/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!--

to top <!-- Index for DEF nodes: _1, centerOfRotation, Cobweb, NavigationInfo, nodes, orientation, position, Selection, Titania, TR, type, Viewpoint

Index for ProtoDeclare definition: myPrototype
-->
<Scene>
<ProtoDeclare name='myPrototype'>
<ProtoInterface>
<field name='myInputRangetype='SFVec3fvalue='0.95 0.44 0.22accessType='initializeOnly'/>
</ProtoInterface>
<ProtoBody>
<Transform DEF='TR'>
<Shape>
<Appearance>
<Material diffuseColor='0.5 0.5 0.9'/>
<ComposedShader containerField='shaderslanguage='GLSL'>
<field name='decistype='SFVec3faccessType='initializeOnly'/>
<IS>
<connect nodeField='decisprotoField='myInputRange'/>
</IS>
<ShaderPart containerField='parts'>
</ShaderPart>
<ShaderPart containerField='partstype='FRAGMENT'>
</ShaderPart>
</ComposedShader>
<ComposedShader DEF='CobwebcontainerField='shaderslanguage='GLSL'>
<field name='decistype='SFVec3fvalue='0.95 0.77 0.44accessType='initializeOnly'/>
<ShaderPart containerField='parts'>
</ShaderPart>
<ShaderPart DEF='_1containerField='partstype='FRAGMENT'>
</ShaderPart>
</ComposedShader>
</Appearance>
<Sphere radius='1.75'/>
</Shape>
</Transform>
</ProtoBody>
</ProtoDeclare>
<WorldInfo title='SimpleShader'>
<MetadataSet DEF='Titanianame='Titaniareference=' http://titania.create3000.de '>
<MetadataSet DEF='SelectioncontainerField='valuename='Selectionreference=' http://titania.create3000.de '>
<MetadataSet DEF='nodescontainerField='valuename='nodesreference=' http://titania.create3000.de '>
<!-- NULL -->
</MetadataSet>
</MetadataSet>
<MetadataSet DEF='NavigationInfocontainerField='valuename='NavigationInforeference=' http://titania.create3000.de '>
<MetadataString DEF='typecontainerField='valuename='typereference=' http://titania.create3000.devalue='"EXAMINE"'/>
</MetadataSet>
<MetadataSet DEF='ViewpointcontainerField='valuename='Viewpointreference=' http://titania.create3000.de '>
<MetadataDouble DEF='positioncontainerField='valuename='positionreference=' http://titania.create3000.devalue='6.24067728185014 0.00250837343276661 2.92117542307615'/>
<MetadataDouble DEF='orientationcontainerField='valuename='orientationreference=' http://titania.create3000.devalue='-0.110173424710488 0.990158061907379 -0.0863065984000336 1.21146676119191'/>
<MetadataDouble DEF='centerOfRotationcontainerField='valuename='centerOfRotationreference=' http://titania.create3000.devalue='-0.808320198626341 -0.358072370409949 0.22817191560906'/>
</MetadataSet>
</MetadataSet>
</WorldInfo>
<ProtoInstance name='myPrototype'/>
</Scene>
</X3D>
<!--

to top <!-- Index for DEF nodes: _1, centerOfRotation, Cobweb, NavigationInfo, nodes, orientation, position, Selection, Titania, TR, type, Viewpoint

Index for ProtoDeclare definition: myPrototype
-->

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
myPrototype
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/Shaders/SimpleShaderIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/Shaders/SimpleShader.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. -->