Layer QML Type
Layer provides a way of filtering which entities will be rendered. More...
Import Statement: | import Qt3D.Render 2.7 |
Instantiates: | QLayer |
Inherits: |
Properties
- recursive : bool
Detailed Description
Layer works in conjunction with the LayerFilter in the FrameGraph.
A Layer can be applied to a subtree of entities by setting the recursive property to true.
import Qt3D.Core 2.0 import Qt3D.Render 2.0 Entity { id: root components: RenderSettings { // FrameGraph Viewport { ClearBuffers { buffers: ClearBuffers.ColorDepthBuffer CameraSelector { camera: mainCamera LayerFilter { layers: [layer1] } } } } } // Scene Camera { id: mainCamera } Layer { id: layer1 recursive: true } GeometryRenderer { id: mesh } Entity { id: renderableEntity components: [ mesh, layer1 ] } }
See also LayerFilter.
Property Documentation
recursive : bool |
Specifies if the layer is also applied to the entity subtree.
© 2024 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.