- Qt 6.11
- Qt Quick 3D
- QML Types
- RenderablesFilter
- Qt Quick 3D | Commercial or GPLv3

# RenderablesFilter QML Type

Defines a filter for selecting which renderables to affect in a pass. More...

Import Statement: | `import QtQuick3D`
Since: | Qt 6.11
Inherits: | Command

- List of all members, including inherited members

## Properties

- layerMask : int
- renderableTypes : enumeration

## Detailed Description

The RenderablesFilter type is used to specify which renderables in the scene should be affected by a RenderPass. By setting the `renderableTypes` property, you can control whether the pass affects Opaque, Transparent, or no objects at all.

Setting `renderableTypes` to `None` is useful when a RenderPass acts as a container for SubRenderPasses and should not render any objects itself.

In addition to filtering by renderable types, you can also use the layerMask to further refine which renderables are affected based on their assigned layers.

## Property Documentation

### layerMask : int

Sets the layer mask for the filter. Only renderables on the specified layers will be affected by the filter.

See also l{QtQuick3D::Node::layers}.

### renderableTypes : enumeration `[default: RenderablesFilter.Opaque | RenderablesFilter.Transparent]`

Sets the types of renderables that the filter will affect.

Constant | Description
--- | ---
`RenderablesFilter.None` | No renderables will be rendered. Useful for container passes that only have SubRenderPasses.
`RenderablesFilter.Opaque` | Only opaque renderables will be rendered.
`RenderablesFilter.Transparent` | Only transparent renderables will be rendered.

Note: Multiple values can be combined using the | operator.