Effect QML Type
Qt 3D シーンにおけるエフェクトの基底クラスです。詳細...
この型は非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
- parameters : list<Parameter>
- techniques : list<Technique>
詳細な説明
「エフェクト」タイプは、マテリアルにレンダリング効果を生み出すために使用される一連の手法と、それらの手法で使用されるパラメータを組み合わせたものです。
可能であれば、1つのエフェクトインスタンスを複数のマテリアルインスタンス間で共有すべきです。
エフェクトで定義されたパラメータは、Technique およびRenderPass で定義された(同名の)パラメータを上書きしますが、RenderPassFilter 、TechniqueFilter 、および 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 {
...
}
}
]
}
]
}Material 、Technique 、およびParameterも参照してください 。
プロパティのドキュメント
parameters : list<Parameter>
このエフェクトで使用されるパラメータのリストを保持します。パラメータは、このエフェクトで使用されるシェーダー内で、対応する一様な値を設定するために使用されます。
techniques : list<Technique>
このエフェクトで使用されるテクニックの一覧を保持します。
© 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.