Class SoColorMask

  • All Implemented Interfaces:
    SafeDisposable

    public class SoColorMask
    extends SoNode
    Enable and disable writing of frame buffer color components. Specifies whether individual color components in the frame buffer will be modified during rendering.

    The color mask will affect all draw buffers.

    "Hidden Line Rendering" is a typical use case where a SoColorMask can be useful: faces are first rendered with red, green, blue and alpha masks to false, so that only depth is written. Then, the shape is rendered in wireframe mode, with all masks to true.

    To control modifying the depth buffer during rendering see SoDepthBuffer.

    File format/default:

    ColorMask {

      red true
      green true
      blue true
      alpha true
    }

    Since:
    Open Inventor 10.4

    See Also:
    SoDrawStyle, SoDepthBuffer
    • Field Detail

      • red

        public final SoSFBool red
        Specifies whether or not the red component can be written into the frame buffer. The default value is true, indicating that the color component can be written.
      • green

        public final SoSFBool green
        Specifies whether or not the green component can be written into the frame buffer. The default value is true, indicating that the color component can be written.
      • blue

        public final SoSFBool blue
        Specifies whether or not the blue component can be written into the frame buffer. The default value is true, indicating that the color component can be written.
      • alpha

        public final SoSFBool alpha
        Specifies whether or not the alpha component can be written into the frame buffer. The default value is true, indicating that the color component can be written.
    • Constructor Detail

      • SoColorMask

        public SoColorMask()