Class SoBaseColor

  • All Implemented Interfaces:
    SafeDisposable

    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 base color(s) of the current material and has no effect on the material's other attributes.

    As described here, the rgb field of this class can be overridden by other property nodes.

    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, SoPhysicalMaterial, 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.