Difference between revisions of "Appearance"
Line 8: | Line 8: | ||
SFNode [in,out] material NULL [X3DMaterialNode] | SFNode [in,out] material NULL [X3DMaterialNode] | ||
SFNode [in,out] metadata NULL [X3DMetadataObject] | SFNode [in,out] metadata NULL [X3DMetadataObject] | ||
+ | MFNode [in,out] shaders [] [X3DShaderNode] | ||
SFNode [in,out] texture NULL [X3DTextureNode] | SFNode [in,out] texture NULL [X3DTextureNode] | ||
SFNode [in,out] textureTransform NULL [X3DTextureTransformNode] | SFNode [in,out] textureTransform NULL [X3DTextureTransformNode] |
Revision as of 12:51, 18 April 2015
Appearance
Appearance : X3DAppearanceNode { SFNode [in,out] fillProperties NULL [FillProperties] SFNode [in,out] lineProperties NULL [LineProperties] SFNode [in,out] material NULL [X3DMaterialNode] SFNode [in,out] metadata NULL [X3DMetadataObject] MFNode [in,out] shaders [] [X3DShaderNode] SFNode [in,out] texture NULL [X3DTextureNode] SFNode [in,out] textureTransform NULL [X3DTextureTransformNode] }
The Appearance node specifies the visual properties of geometry. The value for each of the fields in this node may be NULL
. However, if the field is non-NULL
, it shall contain one node of the appropriate type.
The material field, if specified, shall contain a Material node. If the material field is NULL
or unspecified, lighting is off (all lights are ignored during rendering of the object that references this Appearance) and the unlit object colour is (1, 1, 1). Details of the X3D lighting model are in 17 Lighting component.
The texture field, if specified, shall contain one of the various types of texture nodes (see: Texturing component). If the texture node is NULL
or the texture field is unspecified, the object that references this Appearance is not textured.
The textureTransform field, if specified, shall contain a TextureTransform node as defined in 18.4.8 TextureTransform. If the textureTransform is NULL
or unspecified, the textureTransform field has no effect.
The lineProperties field, if specified, shall contain a LineProperties node as specified in 12.4.3 LineProperties. If lineProperties is NULL
or unspecified, the lineProperties field has no effect.
The fillProperties field, if specified, shall contain a FillProperties node as specified in 12.4.2 FillProperties. If fillProperties is NULL
or unspecified, the fillProperties field has no effect.
Example
This example shows a simple appearance containing a red material.
#X3D V3.0 utf8 PROFILE Interchange Shape { appearance Appearance { material Material { diffuseColor 1 0 0 } } geometry Box {} }