1 | // Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB). |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QT3DEXTRAS_QMETALROUGHMATERIAL_P_H |
5 | #define QT3DEXTRAS_QMETALROUGHMATERIAL_P_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 for the convenience |
12 | // of other Qt classes. 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 <Qt3DRender/private/qmaterial_p.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | namespace Qt3DRender { |
23 | |
24 | class QFilterKey; |
25 | class QEffect; |
26 | class QAbstractTexture; |
27 | class QTechnique; |
28 | class QParameter; |
29 | class QShaderProgram; |
30 | class QShaderProgramBuilder; |
31 | class QRenderPass; |
32 | |
33 | } // namespace Qt3DRender |
34 | |
35 | namespace Qt3DExtras { |
36 | |
37 | class QMetalRoughMaterial; |
38 | |
39 | class QMetalRoughMaterialPrivate : public Qt3DRender::QMaterialPrivate |
40 | { |
41 | public: |
42 | QMetalRoughMaterialPrivate(); |
43 | |
44 | void init(); |
45 | |
46 | void handleTextureScaleChanged(const QVariant &var); |
47 | void updateLayersOnTechnique(const QStringList &layers); |
48 | void updateVertexShaderBasedOnLayers(const QStringList &layers); |
49 | |
50 | Qt3DRender::QParameter *m_baseColorParameter; |
51 | Qt3DRender::QParameter *m_metalnessParameter; |
52 | Qt3DRender::QParameter *m_roughnessParameter; |
53 | Qt3DRender::QParameter *m_baseColorMapParameter; |
54 | Qt3DRender::QParameter *m_metalnessMapParameter; |
55 | Qt3DRender::QParameter *m_roughnessMapParameter; |
56 | Qt3DRender::QParameter *m_ambientOcclusionMapParameter; |
57 | Qt3DRender::QParameter *m_normalMapParameter; |
58 | Qt3DRender::QParameter *m_textureScaleParameter; |
59 | Qt3DRender::QEffect *m_metalRoughEffect; |
60 | Qt3DRender::QTechnique *m_metalRoughGL3Technique; |
61 | Qt3DRender::QRenderPass *m_metalRoughGL3RenderPass; |
62 | Qt3DRender::QShaderProgram *m_metalRoughGL3Shader; |
63 | Qt3DRender::QShaderProgramBuilder *m_metalRoughGL3ShaderBuilder; |
64 | Qt3DRender::QTechnique *m_metalRoughES3Technique; |
65 | Qt3DRender::QRenderPass *m_metalRoughES3RenderPass; |
66 | Qt3DRender::QShaderProgram *m_metalRoughES3Shader; |
67 | Qt3DRender::QShaderProgramBuilder *m_metalRoughES3ShaderBuilder; |
68 | Qt3DRender::QTechnique *m_metalRoughRHITechnique; |
69 | Qt3DRender::QRenderPass *m_metalRoughRHIRenderPass; |
70 | Qt3DRender::QShaderProgram *m_metalRoughRHIShader; |
71 | Qt3DRender::QShaderProgramBuilder *m_metalRoughRHIShaderBuilder; |
72 | Qt3DRender::QFilterKey *m_filterKey; |
73 | |
74 | Q_DECLARE_PUBLIC(QMetalRoughMaterial) |
75 | }; |
76 | |
77 | } // Qt3DExtras |
78 | |
79 | QT_END_NAMESPACE |
80 | |
81 | #endif // QT3DEXTRAS_QMETALROUGHMATERIAL_P_H |
82 | |
83 |