ColorMask QML Type | Qt 3D | Qt 6.12.0
Description: Allows specifying which color components should be written to the currently bound frame buffer.
Keywords: qmltype

- Qt 6.12
- Qt 3D
- QML Types
- Qt3D.Render (Deprecated)
- ColorMask
- Qt 6.12.0 Reference Documentation

# ColorMask QML Type

Allows specifying which color components should be written to the currently bound frame buffer. More...

Import Statement: | `import Qt3D.Render 2.12`
In C++: | QColorMask
Inherits: | RenderState
Status: | Deprecated

This type is deprecated. We strongly advise against using it in new code.

- List of all members, including inherited members

## Properties

- alphaMasked : bool
- blueMasked : bool
- greenMasked : bool
- redMasked : bool

## Detailed Description

By default, the property for each color component (red, green, blue, alpha) is set to `true` which means they will be written to the frame buffer. Setting any of the color component to `false` will prevent it from being written into the frame buffer.

## Property Documentation

### alphaMasked : bool

Holds whether alpha component should be written to the frame buffer.

### blueMasked : bool

Holds whether blue color component should be written to the frame buffer.

### greenMasked : bool

Holds whether green color component should be written to the frame buffer.

### redMasked : bool

Holds whether red color component should be written to the frame buffer.