Layer provides a way of filtering which entities will be rendered. 更多...
| import 语句: |
import Qt3D.Render 2.8
|
| 在 C++: | QLayer |
| 继承: | |
| 状态: | Deprecated |
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 ] } }
另请参阅 LayerFilter .
|
recursive : bool |
Specifies if the layer is also applied to the entity subtree.