Light Is All Around
Node
DirectionalLight • Attributes
Description
A Sphere "hovering" over a flat box in the dark. No DirectionalLight or avatar headlight, which is on by default, is active. When switching the light on, only DirectionalLight will be activated.
VRIGNETTE Notes
The X3D rough equivilent to sunlight. There is no specific source point, only a direction.
Example
Toggle On/Off to light the vrignette.
Code
<x3d> <scene> <worldInfo title="X3D PointLight Example"> </worldInfo> <!-- Avatar Headlight --> <navigationInfo headlight="false"> </navigationInfo> <viewpoint position="0.0 3.0 20.0"> </viewpoint> <!-- DirectionalLight --> <directionalLight on="false" direction="0.0 0.0 -1.0" color="1.0 1.0 1.0" intensity="0.75"> </directionalLight> <!-- Sphere --> <transform translation="0.0 5.0 0.0"> <shape> <appearance> <material diffuseColor="1.0 1.0 1.0"> </material> </appearance> <sphere radius="2.0"> </sphere> </shape> </transform> <!-- Floor --> <shape> <appearance> <material diffuseColor="1.0 1.0 1.0"> </material> </appearance> <box size="10.0 0.25 10.0"> </box> </shape> <background skyColor="0.20 0.20 0.20" groundColor="0.20 0.20 0.20"> </background> </scene> </x3d>