| 1 |
// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 |
|
| 4 |
import QtQuick 2.0 as QQ2 |
| 5 |
import Qt3D.Core 2.0 |
| 6 |
import Qt3D.Render 2.0 |
| 7 |
import Qt3D.Input 2.0 |
| 8 |
import Qt3D.Extras 2.0 |
| 9 |
|
| 10 |
Entity { |
| 11 |
id : root |
| 12 |
|
| 13 |
components : [ |
| 14 |
RenderSettings { |
| 15 |
activeFrameGraph: DeferredRenderer { |
| 16 |
id: frameGraph |
| 17 |
camera : sceneEntity.camera |
| 18 |
gBuffer: GBuffer {} |
| 19 |
sceneLayer: sceneEntity.layer |
| 20 |
screenQuadLayer: screenQuadEntity.layer |
| 21 |
debugLayer: debugEntity.layer |
| 22 |
} |
| 23 |
renderPolicy: RenderSettings.Always |
| 24 |
}, |
| 25 |
InputSettings {} |
| 26 |
] |
| 27 |
|
| 28 |
FirstPersonCameraController { camera: sceneEntity.camera } |
| 29 |
|
| 30 |
ScreenQuadEntity { |
| 31 |
id: screenQuadEntity |
| 32 |
baseLight: sceneEntity.light |
| 33 |
light1Pos: sceneEntity.light1Pos |
| 34 |
light2Pos: sceneEntity.light2Pos |
| 35 |
light3Pos: sceneEntity.light3Pos |
| 36 |
light4Pos: sceneEntity.light4Pos |
| 37 |
} |
| 38 |
SceneEntity { id: sceneEntity } |
| 39 |
GBufferDebugger { id: debugEntity } |
| 40 |
} |