Texture Your Shape
Node
Material • Attributes
Description
A solid black box located within a larger white box with a material transparency of 25%.
VRIGNETTE Notes
Material handles how light interacts with a shape to produce colors. If Material is not specified, lighting for the shape is turned off.
Material is located within an Appearance tag.
Other Nodes
Example
Rotate the vrignette to view the geometry.
Code
<x3d> <scene> <worldInfo title="X3D Material Example"> </worldInfo> <navigationInfo headlight="true"> </navigationInfo> <viewpoint position="0.0 1.5 8.5" orientation="1 0 0 -0.196" centerOfRotation="0.0 0.0 0.0"> </viewpoint> <transform rotation="1 0 0 -0.196"> <transform rotation="0 1 0 -0.585"> <shape> <appearance> <material diffuseColor="0.0 0.0 0.0" specularColor="0.25 0.25 0.25"> </material> </appearance> <box size="1.5 1.5 1.5" solid="false"> </box> </shape> <shape> <appearance> <material diffuseColor="1.0 1.0 1.0" specularColor="0.75 0.75 0.75" transparency="0.25"> </material> </appearance> <box size="3.0 3.0 3.0" solid="false"> </box> </shape> </transform> </transform> <background skyColor="0.20 0.20 0.20" groundColor="0.20 0.20 0.20"> </background> </scene> </x3d>