RenderStateSet QML Type
RenderStateSetFrameGraph ノードは、フレームグラフの分岐の実行中に適用される一連のRenderState オブジェクトを指定する方法を提供します。詳細...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QRenderStateSet |
| Inherits: | |
| Status: | Deprecated |
この型は非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
- renderStates : list<RenderState>
詳細説明
RenderPass で設定可能なマテリアルごとの状態とは異なり、RenderStateSetに設定された状態はグローバルに適用されます。デフォルトでは、空のRenderStateSetを実行すると、すべてのレンダリング状態が無効になります。RenderState 状態を追加すると、実行時にそのレンダリング状態が明示的に有効になります。
RenderStateSetは、アクティブなフレームグラフに追加されると有効になります:
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オブジェクトのリストを保持します。
© 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.