Effect QML Type | Qt 3D (original) (raw)
The base class for effects in a Qt 3D scene. More...
Import Statement: | import Qt3D.Render 2.9 |
---|---|
In C++: | QEffect |
Inherits: | Node |
Status: | Deprecated |
Properties
- parameters : list
- techniques : list
Detailed Description
The Effect type combines a set of techniques and parameters used by those techniques to produce a rendering effect for a material.
An Effect instance should be shared among several Material instances when possible.
A Parameter defined on a Effect overrides parameter (of the same name) defined in Technique and RenderPass, but are overridden by parameter in RenderPassFilter, TechniqueFilter and Material.
Note: Effect node can not be disabled.
Effect { id: effect
techniques: [
Technique {
id: gl3Technique
graphicsApiFilter {
api: GraphicsApiFilter.OpenGL
profile: GraphicsApiFilter.CoreProfile
majorVersion: 3
minorVersion: 1
}
renderPasses: [
RenderPass {
id: gl3Pass
shaderProgram: ShaderProgram {
...
}
}
]
}
]
}
See also Material, Technique, and Parameter.
Property Documentation
Holds the list of parameters used by this effect. A parameter is used to set a corresponding uniform value in the shader used by this effect.
Holds the list of techniques used by this effect.
© 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.