| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd">
|
| 3 | <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'> |
| 4 | <head> |
| 5 | <component level='1' name='Shaders'/> |
| 6 | <meta name='title' content=' SimpleShader.x3d '/> |
| 7 | <meta name='description' content='Simple shader example'/> |
| 8 | <meta name='creator' content='John Stewart'/> |
| 9 | <meta name='translator' content='Holger Seelig, John Carlson, Don Brutzman and Jeff Malnick'/> |
| 10 | <meta name='created' content='26 May 2009'/> |
| 11 | <meta name='translated' content='15 October 2009'/> |
| 12 | <meta name='modified' content='20 October 2019'/> |
| 13 | <meta name='reference' content='http://www.opengl.org/wiki/Fragment_Shader'/> |
| 14 | <meta name='reference' content='http://www.opengl.org/wiki/http://www.opengl.org/wiki/Vertex_Shader'/> |
| 15 | <meta name='reference' content='https://www.web3d.org/x3d/wiki/index.php/X3D_Plugfest'/> |
| 16 | <meta name='subject' content='X3D shader example'/> |
| 17 | <meta name='reference' content='originals/simpleShader.x3dv'/> |
| 18 | <meta name='reference' content=' ShaderTutorialInstantReality.pdf '/> |
| 19 | <meta name='generator' content='Titania V3.0.3, http://titania.create3000.de'/> |
| 20 | <meta name='comment' content='World of Titania'/> |
| 21 | <meta name='outputStyle' content='nicest'/> |
| 22 | <meta name=' warning ' content=' under development '/> |
| 23 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 24 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Basic/Shaders/SimpleShader.x3d '/> |
| 25 | <meta name='license' content='../../license.html'/> |
| 26 | </head> |
| 27 | <Scene> |
| 28 | <ProtoDeclare name='myPrototype'> |
| 29 | <ProtoInterface> |
| 30 | <field name='myInputRange' type='SFVec3f' value='0.95 0.44 0.22' accessType='initializeOnly'/> |
| 31 | </ProtoInterface> |
| 32 | <ProtoBody> |
| 33 | <Transform DEF='TR'> |
| 34 | <Shape> |
| 35 | <Appearance> |
| 36 | <Material diffuseColor='0.5 0.5 0.9'/> |
| 37 | <ComposedShader containerField='shaders' language='GLSL'> |
| 38 | <field name='decis' type='SFVec3f' accessType='initializeOnly'/> |
| 39 | <IS> |
| 40 | <connect nodeField='decis' protoField='myInputRange'/> |
| 41 | </IS> |
| 42 | <ShaderPart containerField='parts'> |
| 43 | </ShaderPart> |
| 43 | <ShaderPart containerField='parts' type='FRAGMENT'> |
| 44 | </ShaderPart> |
| 44 | </ComposedShader> |
| 45 | <ComposedShader DEF='Cobweb' containerField='shaders' language='GLSL'> |
| 46 | <field name='decis' type='SFVec3f' value='0.95 0.77 0.44' accessType='initializeOnly'/> |
| 47 | <ShaderPart containerField='parts'> |
| 48 | </ShaderPart> |
| 48 | <ShaderPart DEF='_1' containerField='parts' type='FRAGMENT'> |
| 49 | </ShaderPart> |
| 49 | </ComposedShader> |
| 50 | </Appearance> |
| 51 | <Sphere radius='1.75'/> |
| 52 | </Shape> |
| 53 | </Transform> |
| 54 | </ProtoBody> |
| 55 | </ProtoDeclare> |
| 56 | <WorldInfo title='SimpleShader'> |
| 57 | <MetadataSet DEF='Titania' name='Titania' reference='http://titania.create3000.de'> |
| 58 | <MetadataSet DEF='Selection' containerField='value' name='Selection' reference='http://titania.create3000.de'> |
| 59 | <MetadataSet DEF='nodes' containerField='value' name='nodes' reference='http://titania.create3000.de'> |
| 60 | <!-- NULL --> |
| 61 | </MetadataSet> |
| 62 | </MetadataSet> |
| 63 | <MetadataSet DEF='NavigationInfo' containerField='value' name='NavigationInfo' reference='http://titania.create3000.de'> |
| 64 | <MetadataString DEF='type' containerField='value' name='type' reference='http://titania.create3000.de' value='"EXAMINE"'/> |
| 65 | </MetadataSet> |
| 66 | <MetadataSet DEF='Viewpoint' containerField='value' name='Viewpoint' reference='http://titania.create3000.de'> |
| 67 | <MetadataDouble DEF='position' containerField='value' name='position' reference='http://titania.create3000.de' value='6.24067728185014 0.00250837343276661 2.92117542307615'/> |
| 68 | <MetadataDouble DEF='orientation' containerField='value' name='orientation' reference='http://titania.create3000.de' value='-0.110173424710488 0.990158061907379 -0.0863065984000336 1.21146676119191'/> |
| 69 | <MetadataDouble DEF='centerOfRotation' containerField='value' name='centerOfRotation' reference='http://titania.create3000.de' value='-0.808320198626341 -0.358072370409949 0.22817191560906'/> |
| 70 | </MetadataSet> |
| 71 | </MetadataSet> |
| 72 | </WorldInfo> |
| 73 | <ProtoInstance name='myPrototype'/> |
| 74 | </Scene> |
| 75 | </X3D> |
Event Graph ROUTE Table with 0 ROUTE connections 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.
| line 73
ProtoInstance myPrototype |
No direct ROUTE connection found for events to/from this node. This ProtoInstance contains SFNode/MFNode fieldValue declarations with direct access to other nodes, and thus has potential to produce run-time animation. |
<!--
Color-coding 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>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->