Effect QML Type
Qt 3D 场景中特效的基类。更多
属性
- parameters : list<Parameter>
- techniques : list<Technique>
详细说明
效果(Effect)类型结合了一组技术和这些技术所使用的参数,为材质生成渲染效果。
一个效果实例应尽可能由多个材质实例共享。
在 "效果 "中定义的参数会覆盖在 "技术 "和RenderPass 中定义的参数(同名),但会被RenderPassFilter 、TechniqueFilter 和 "材质 "中的参数覆盖。
注: "效果 "节点不可禁用。
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.