RenderStateSet QML Type
RenderStateSet FrameGraph 노드는 프레임그래프 브랜치를 실행하는 동안 적용될 RenderState 객체 집합을 지정하는 방법을 제공합니다. 더 보기...
Import Statement: | import Qt3D.Render 2.8 |
In C++: | QRenderStateSet |
Inherits: | |
Status: | Deprecated |
속성
- renderStates : list<RenderState>
상세 설명
렌더 스테이트 세트에 설정된 상태는 RenderPass 에 설정할 수 있는 머티리얼별 상태와 달리 전역적으로 설정됩니다. 기본적으로 빈 렌더 스테이트 세트는 실행 시 모든 렌더 스테이트가 비활성화됩니다. RenderState 상태를 추가하면 런타임에 해당 렌더링 상태가 명시적으로 활성화됩니다.
활성 프레임 그래프에 추가하면 렌더 스테이트 세트가 활성화됩니다:
import Qt3D.Core 2.0 import Qt3D.Render 2.0 import Qt3D.Extras 2.0 Entity { id: rootNode components: [ RenderSettings { activeFrameGraph: RenderSurfaceSelector { ClearBuffers { buffers : ClearBuffers.ColorDepthBuffer CameraSelector { camera: Camera { position: Qt.vector3d(10, 0, 0) viewCenter: Qt.vector3d(0, 0, 0) } RenderStateSet { renderStates: [ CullFace { mode: CullFace.Back } ] } } } } } ] Entity { id: sphereEntity components: [ GeometryRenderer { view: SphereMesh {} }, PhongMaterial {} ] } }
RenderState 및 RenderPass 을참조하세요 .
프로퍼티 문서
renderStates : list<RenderState> |
RenderStateSet 에서 사용하는 RenderState 객체 목록을 보유합니다.
© 2025 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.