| 1 | // Copyright (C) 2021 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QSSG_RENDER_REFLECTION_PROBE_H |
| 5 | #define QSSG_RENDER_REFLECTION_PROBE_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists purely as an |
| 12 | // implementation detail. This header file may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <QtQuick3DRuntimeRender/private/qssgrendernode_p.h> |
| 19 | #include <QtQuick3DRuntimeRender/private/qssgrendererutil_p.h> |
| 20 | #include <QColor> |
| 21 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | struct QSSGRenderImage; |
| 25 | |
| 26 | struct Q_QUICK3DRUNTIMERENDER_EXPORT QSSGRenderReflectionProbe : public QSSGRenderNode |
| 27 | { |
| 28 | enum class ReflectionRefreshMode |
| 29 | { |
| 30 | FirstFrame, |
| 31 | EveryFrame |
| 32 | }; |
| 33 | |
| 34 | enum class ReflectionTimeSlicing |
| 35 | { |
| 36 | None, |
| 37 | AllFacesAtOnce, |
| 38 | IndividualFaces |
| 39 | }; |
| 40 | |
| 41 | quint32 reflectionMapRes = 8; |
| 42 | QColor clearColor = Qt::transparent; |
| 43 | ReflectionRefreshMode refreshMode = ReflectionRefreshMode::FirstFrame; |
| 44 | ReflectionTimeSlicing timeSlicing = ReflectionTimeSlicing::None; |
| 45 | bool parallaxCorrection = false; |
| 46 | QVector3D boxSize { 0.0, 0.0, 0.0 }; |
| 47 | QVector3D boxOffset { 0.0, 0.0, 0.0 }; |
| 48 | bool hasScheduledUpdate = false; |
| 49 | QSSGRenderImage *texture = nullptr; |
| 50 | |
| 51 | explicit QSSGRenderReflectionProbe(); |
| 52 | }; |
| 53 | |
| 54 | QT_END_NAMESPACE |
| 55 | |
| 56 | #endif |
| 57 | |