Appearance {
SFNode material NULL # {Material, PROTO}
SFNode texture NULL # {ImageTexture, PROTO}
SFNode textureTransform NULL # {TextureTransform, PROTO}
SFString name "appearance" # any string
}
The Appearance node (like the PBRAppearance node) specifies the visual properties of a geometric node. It should be set inside a Shape node. 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
materialfield, if specified, shall contain a Material node. If thematerialfield is NULL, lighting is off (all lights are ignored during the rendering of the object that references this Appearance) and the unlit object color is (1,1,1). -
The
texturefield, if specified, shall contain an ImageTexture node. If thetexturenode is NULL, the object that references this Appearance is not textured. -
The
textureTransformfield, if specified, shall contain a TextureTransform node. If thetextureTransformis NULL, thetextureTransformfield has no effect. Otherwise, the TextureTransform is applied to the ImageTexture in thetexturefield when shading the object. -
The
namefield is used to give a unique identifier to an Appearance node such that if it is included in an MFNode field it can be retrieved by this name. This name is not required to be unique if the Appearance node is inserted into an SFNode field.