Class SoBaseColor

  • All Implemented Interfaces:

    public class SoBaseColor
    extends SoNode
    Node that defines an object's base color. This node defines the base color (or colors) of subsequent shape nodes in the scene graph. SoBaseColor sets only the diffuse color(s) of the current material and has no effect on the material's other attributes.

    File format/default:

    BaseColor {

      rgb 0.8 0.8 0.8

    Action behavior:

    SoGLRenderAction, SoCallbackAction
    Sets the current base color in the state.

    See Also:
    SoMaterial, SoPackedColor, SoVertexProperty
    • Field Detail

      • rgb

        public final SoMFColor rgb
        RGB color(s).
    • Constructor Detail

      • SoBaseColor

        public SoBaseColor()
        Creates a base color node with default settings.