Effect QML Type

Qt 3D シーンにおけるエフェクトの基本クラスです。詳細...

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

Node

Status: Deprecated

プロパティ

詳細説明

Effectタイプは、マテリアルのレンダリング効果を生成するために、一連のテクニックとそれらのテクニックで使用されるパラメータを組み合わせたものです。

可能であれば、Effect インスタンスは複数の Material インスタンス間で共有する必要があります。

Effectに定義されたパラメータは、TechniqueとRenderPass に定義されたパラメータ(同名)をオーバーライドしますが、RenderPassFilterTechniqueFilter 、Materialのパラメータによってオーバーライドされます。

注: Effect ノードを無効にすることはできません。

Effect {
    id: effect

    techniques: [
        Technique {
            id: gl3Technique
            graphicsApiFilter {
                api: GraphicsApiFilter.OpenGL
                profile: GraphicsApiFilter.CoreProfile
                majorVersion: 3
                minorVersion: 1
            }
            renderPasses: [
                RenderPass {
                    id: gl3Pass
                    shaderProgram: ShaderProgram {
                        ...
                    }
                }
            ]
        }
    ]
}

MaterialTechniqueParameterも参照してください

プロパティ ドキュメント

parameters : list<Parameter>

このエフェクトで使用されるパラメータのリストを保持します。パラメータは、このエフェクトで使用されるシェーダに対応する一様な値を設定するために使用されます。


techniques : list<Technique>

このエフェクトで使用されるテクニックのリストを保持します。


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