Effect QML Type
The base class for effects in a Qt 3D scene. More...
Import Statement: | import Qt3D.Render 2.12 |
Since: | Qt 5.7 |
Instantiates: | QEffect |
Inherits: |
Properties
- parameters : list<Parameter>
- techniques : list<Technique>
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 an Effect is overridden by a QParameter (of the same name) defined in a Material, TechniqueFilter, RenderPassFilter.
Effect { id: effect technique: [ 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.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.12/qml-qt3d-render-effect.html