OpenGLContext.scenegraph.appearance
Appearance node based on VRML 97 model
Classes
class Appearance(
Appearance
):
Specifies visual properties for geometry
The appearance node specifies a set of appearance properties
to be applied to some number of geometry objects. The Appearance
node should be managed by a surrounding Shape node which binds
the Appearance to the appropriate geometry. Note that multiple
Shape nodes are likely to use the same Appearance node.
There are three attributes of note within the appearance object:
- material
- Material node specifying rendering properties for the surface that affect the lighting model and transparency of the object. If None, an un-lit material (emissive color == 1.0) is used by default.
- texture
- Image)Texture node specifying a 2-D texture to apply to the geometry. If None, no texture is applied.
- textureTransform
- Apply a 2-D transform to texture coordinates before texturing.
render(
self
,
mode
= None
)
Render Appearance, return (lit, textured, alpha, textureToken)
Renders the appearance node, returning 3 status flags
and a token which can be used to disable any enabled
textures.
Should only be called during visible rendering runs