5#ifndef QSSG_RENDER_LAYER_H
6#define QSSG_RENDER_LAYER_H
19#include <QtQuick3DRuntimeRender/private/qssgrendernode_p.h>
20#include <QtCore/qvarlengtharray.h>
21#include <QtCore/qlist.h>
22#include <ssg/qssglightmapper.h>
26struct QSSGRenderPresentation;
96 static size_t constexpr TonemapModeCount = 6;
100 EnableDepthTest = 0x1,
101 EnableDepthPrePass = 0x2,
127 QList<QSSGRenderExtension *> renderExtensions[size_t(RenderExtensionStage::Count)];
136 float aoStrength = 0.0f;
137 float aoDistance = 5.0f;
138 float aoSoftness = 50.0f;
141 bool aoDither =
false;
142 bool aoEnabled =
false;
144 constexpr bool ssaoEnabled()
const {
return aoEnabled && (aoStrength > 0.0f && aoDistance > 0.0f); }
149 float probeExposure { 1.0f };
150 float probeHorizon { -1.0f };
153 } lightProbeSettings;
177 LayerFlags layerFlags { LayerFlag::RenderToTarget,
178 LayerFlag::EnableDepthTest,
179 LayerFlag::EnableDepthPrePass };
184 bool skyBoxIsRgbe8 =
false;
187 float skyboxBlurAmount = 0.0f;
190 bool gridEnabled =
false;
191 float gridScale = 1.0f;
205 float density = 1.0f;
206 bool depthEnabled =
false;
207 float depthBegin = 10.0f;
208 float depthEnd = 1000.0f;
209 float depthCurve = 1.0f;
210 bool heightEnabled =
false;
211 float heightMin = 10.0f;
212 float heightMax = 0.0f;
213 float heightCurve = 1.0f;
214 bool transmitEnabled =
false;
215 float transmitCurve = 1.0f;
222 bool wireframeMode =
false;
227 void setProbeOrientation(
const QVector3D &angles);
\qmltype Object3D \inqmlmodule QtQuick3D \instantiates QQuick3DObject \inherits QtObject
\inmodule QtCore\reentrant
The QVector3D class represents a vector or vertex in 3D space.
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
GLenum GLenum GLsizei const GLuint GLboolean enabled
QMatrix3x3 probeOrientation
QVector3D probeOrientationAngles
QSSGLightmapperOptions lmOptions
QVector< QSSGRenderGraphObject * > resourceLoaders
QVarLengthArray< QSSGRenderCamera *, 2 > renderedCameras
QSSGRenderLayer::AAMode antialiasingMode
QSSGRenderLayer::Background background
constexpr bool ssaoEnabled() const
bool progressiveAAIsActive
QSSGRenderLayer::AAQuality antialiasingQuality
QVarLengthArray< QSSGRenderCamera *, 2 > explicitCameras
QVarLengthArray< QRhiShaderResourceBindings *, 4 > item2DSrbs
QSSGRenderEffect * firstEffect