RenderablesFilter QML Type
Definisce un filtro per selezionare gli elementi renderizzabili su cui agire in un’ pass. Altro...
| Import Statement: | import QtQuick3D |
| Since: | Qt 6.11 |
| Inherits: |
Proprietà
- layerMask : int
- renderableTypes : enumeration
Descrizione dettagliata
Il tipo RenderablesFilter viene utilizzato per specificare quali elementi renderizzabili nella scena debbano essere interessati da un RenderPass. Impostando la proprietà renderableTypes, è possibile controllare se il passaggio influisca sugli oggetti opachi, su quelli trasparenti o su nessun oggetto.
Impostare ` renderableTypes ` su ` None ` è utile quando un ` RenderPass ` funge da contenitore per i comandi ` SubRenderPass ` e non deve renderizzare alcun oggetto della scena.
Oltre al filtraggio in base ai tipi di elementi renderizzabili, è possibile utilizzare l’ layerMask per affinare ulteriormente quali elementi renderizzabili sono interessati in base al loro layers assegnato.
// A pass that renders only opaque scene objects
RenderPass {
id: opaquePass
commands: [
ColorAttachment { name: "color0"; target: opaqueColorTexture },
DepthTextureAttachment { target: depthTexture },
RenderablesFilter {
renderableTypes: RenderablesFilter.Opaque
}
]
}
// A pass that renders only transparent objects on top
RenderPass {
id: transparentPass
commands: [
ColorAttachment { name: "color0"; target: transparentColorTexture },
RenderablesFilter {
renderableTypes: RenderablesFilter.Transparent
}
]
}Documentazione delle proprietà
layerMask : int
Imposta la maschera di livello per il filtro. Solo gli elementi renderizzabili presenti sui livelli specificati saranno influenzati dal filtro.
Vedi anche Node::layers.
renderableTypes : enumeration [default: RenderablesFilter.Opaque | RenderablesFilter.Transparent]
Imposta i tipi di elementi renderizzabili su cui agirà il filtro.
| Costante | Descrizione |
|---|---|
RenderablesFilter.None | Non verrà renderizzato alcun elemento renderizzabile. Utile per i passaggi contenitore che contengono solo SubRenderPasses. |
RenderablesFilter.Opaque | Verranno renderizzati solo gli elementi renderizzabili opachi. |
RenderablesFilter.Transparent | Verranno renderizzati solo gli elementi renderizzabili trasparenti. Nota: è possibile combinarepiù valori utilizzando l'operatore |. |
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.