1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
|
3 | <X3D profile='Interchange' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'> |
4 | <head> |
5 | <meta name='title' content='DirectionalLightExample.x3d'/> |
6 | <meta name='description' content='An example of the DirectionalLight node showing no shadows on the lit geometry.'/> |
7 | <meta name='creator' content='Leonard Daly and Don Brutzman'/> |
8 | <meta name='created' content='24 April 2006'/> |
9 | <meta name='modified' content='27 July 2024'/> |
10 | <meta name='Image' content='DirectionalLightFigure.png'/> |
11 | <meta name='reference' content='https://X3dGraphics.com'/> |
12 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dResources.html'/> |
13 | <meta name='rights' content='Copyright 2006, Daly Realism and Don Brutzman'/> |
14 | <meta name='subject' content='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/> |
15 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter11LightingEnvironmentalEffects/DirectionalLightExample.x3d'/> |
16 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
17 | <meta name='license' content='../license.html'/> |
18 | </head> |
19 | <Scene> |
20 | <WorldInfo title='DirectionalLightExample.x3d'/> |
21 | <Background skyColor='1 1 1'/> |
22 | <Viewpoint description='Book Viewpoint' orientation='0.627 -0.707 -0.326 -0.93' position='6.03 6.69 9.25'/> |
23 | <NavigationInfo headlight='false'/> |
24 | <DirectionalLight/> |
25 | <Transform translation='0 1.5 7'> |
26 | |
27 | <Transform rotation='1 0 0 1.57'> |
28 | <Shape> |
29 | |
30 | <Material DEF='ArrowColor'/> |
31 | </Appearance> |
32 | <Cylinder radius='.1'/> |
33 | </Shape> |
34 | </Transform> |
35 | <Transform rotation='1 0 0 -1.57' translation='0 0 -1'> |
36 | <Shape> |
37 | <Appearance USE='ArrowApp'/> |
38 | <Cone bottomRadius='.25' height='.5'/> |
39 | </Shape> |
40 | </Transform> |
41 | </Group> |
42 | </Transform> |
43 | <Transform translation='0 .5 7'> |
44 | <Group USE='Arrow'/> |
45 | </Transform> |
46 | <Transform translation='0 -.5 7'> |
47 | <Group USE='Arrow'/> |
48 | </Transform> |
49 | <Transform translation='0 -1.5 7'> |
50 | <Group USE='Arrow'/> |
51 | </Transform> |
52 | <Transform> |
53 | <Transform DEF='Box' translation='0 0 4'> |
54 | <Shape> |
55 | <Appearance> |
56 | <Material diffuseColor='1 0 0'/> |
57 | </Appearance> |
58 | <Box size='2 2 .2'/> |
59 | </Shape> |
60 | </Transform> |
61 | <Transform DEF='rod' translation='0 0 1'> |
62 | <Shape> |
63 | <Appearance> |
64 | <Material diffuseColor='0 .8 0'/> |
65 | </Appearance> |
66 | <Cylinder height='4'/> |
67 | </Shape> |
68 | </Transform> |
69 | <Transform DEF='hat' rotation='0 0 1 1.57' translation='1 0 -2'> |
70 | <Shape> |
71 | <Appearance> |
72 | <Material diffuseColor='0 0 1'/> |
73 | </Appearance> |
74 | <Cone height='4'/> |
75 | </Shape> |
76 | </Transform> |
77 | <Transform DEF='ball' translation='3 0 -5'> |
78 | <Shape> |
79 | <Appearance> |
80 | <Material diffuseColor='0 1 1'/> |
81 | </Appearance> |
82 | <Sphere radius='2'/> |
83 | </Shape> |
84 | </Transform> |
85 | </Transform> |
86 | </Scene> |
87 | </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. -->