Node: Appearance

X3D: 3.3
Component: Shape
Status:
experimental

Quick Links

➨ Fields

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.

HTML Encoding and Default Values

<Appearance alphaClipThreshold='0.1' blendMode='x3dom.nodeTypes.BlendMode' colorMaskMode='x3dom.nodeTypes.ColorMaskMode' depthMode='x3dom.nodeTypes.DepthMode' lineProperties='x3dom.nodeTypes.LineProperties' material='x3dom.nodeTypes.X3DMaterialNode' metadata='X3DMetadataObject' shaders='x3dom.nodeTypes.X3DShaderNode' sortKey='0' sortType=''auto'' texture='x3dom.nodeTypes.X3DTextureNode' textureTransform='x3dom.nodeTypes.X3DTextureTransformNode' ></Appearance>

Inheritance


Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
alphaClipThreshold SFFloat 1 Specify the threshold for the alpha clipping
blendMode SFNode BlendMode Holds the BlendMode node, that is needed for correct transparency.
colorMaskMode SFNode ColorMaskMode Holds a ColorMaskMode node.
depthMode SFNode DepthMode Holds the depthMode node.
lineProperties SFNode LineProperties The lineProperties field, if specified, shall contain a LineProperties node. If lineProperties is NULL or unspecified, the lineProperties field has no effect.
material SFNode X3DMaterialNode 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).
metadata SFNode X3DMetadataObject Core/X3DNode Field to add metadata information
shaders MFNode Shaders/X3DShaderNode Contains ProgramShader (Cg) or ComposedShader (GLSL).
sortKey SFInt32 0 Change render order manually.
sortType SFString 'auto' [auto, transparent, opaque] Defines the shape type for sorting.
texture SFNode Texturing/X3DTextureNode The texture field, if specified, shall contain a texture nodes. If the texture node is NULL or the texture field is unspecified, the object that references this Appearance is not textured.
textureTransform SFNode Texturing/X3DTextureTransformNode The textureTransform field, if specified, shall contain a TextureTransform node. If the textureTransform is NULL or unspecified, the textureTransform field has no effect.