FullScreenQuad is a convenience Qt3DCore::QEntity subclass use to create a full screen quad. More...
Header: | #include <Kuesa/FullScreenQuad> |
Since: | Kuesa 1.0 |
This class was introduced in Kuesa 1.0.
FullScreenQuad(Qt3DRender::QMaterial *material, Qt3DCore::QNode *parent = nullptr) | |
Qt3DRender::QLayer * | layer() const |
void | setViewportRect(const QRectF &vp) |
Its useful for creating background which must be rendered independently from the scene or to create screen space effects on an image.
A Qt3DRender::QLayer is added to the FullScreenQuad entity which can be retrieved with layer().
material A material to be aggregated to the quad entity. parent The parent node for the quad entity.
This material material can be used to implement a gradient color background or a screen space effect
FullScreenQuad::layer Returns The Qt3DRender::QLayer added to this quad entity.
This layer can be used to filter render views and separate the quad entity render from the scene render.
Specifies the normalized coordinate rectangle vp subset of the input texture on which to apply the material. This usually should match the viewport rect used to render the scene.