RenderStateSet QML Type

RenderStateSetFrameGraph ノードは、フレームグラフ分岐の実行中に適用されるRenderState オブジェクトのセットを指定する方法を提供します。詳細...

Import Statement: import Qt3D.Render 2.8
In C++: QRenderStateSet
Inherits:

FrameGraphNode

Status: Deprecated

プロパティ

詳細説明

RenderStateSet に設定された状態は、RenderPass に設定できるマテリアルごとの状態とは逆に、グローバルに設定されます。 デフォルトでは、空の 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 オブジェクトのリストを保持します。


© 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.