Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qssgrenderskymaterial_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QSSG_RENDER_SKY_MATERIAL_H
6#define QSSG_RENDER_SKY_MATERIAL_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQuick3DRuntimeRender/private/qssgrendergraphobject_p.h>
20#include <QtQuick3DRuntimeRender/private/qssgrenderhelpers_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class QSSGRhiEffectSystem;
25
26struct Q_QUICK3DRUNTIMERENDER_EXPORT QSSGRenderSkyMaterial : public QSSGRenderGraphObject
27{
28 int radianceMapSize = 512;
29 int iblSampleCount = 16;
30 int iblSamplesPerFrame = 0;
31 bool wantsMoreFrames = false;
32 bool enableIBL = false;
33
34 QSSGRenderSkyMaterial();
35 ~QSSGRenderSkyMaterial();
36
37 QList<QSSGBaseTypeProperty> propertyUniforms;
38
39 QSSGRhiShaderPipelinePtr iblPassPipeline;
40
41 QSSGRhiShaderPipelinePtr ensurePipeline(const QSSGRenderContextInterface &sgContext);
42
43 // returns uniform stride per face
44 quint32 updateUniforms(const QSSGRenderContextInterface &sgContext, const QMatrix4x4 &mvp, const QVarLengthArray<QMatrix4x4, 6> views);
45
46 QByteArray fragmentShaderSource;
47
48 QByteArray shaderPathKey = "sky material --";
49
50 bool isDirty = true;
51 bool isFragmentShaderDirty = true;
52
53 QSSGRhiShaderResourceBindingList bindings;
54};
55
56QT_END_NAMESPACE
57
58#endif // QSSG_RENDER_SKY_MATERIAL_H