2022-06-08 12:47:24 +00:00
|
|
|
// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
|
2024-02-23 14:41:04 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
2014-09-04 14:54:05 +00:00
|
|
|
|
2015-11-07 19:02:14 +00:00
|
|
|
import QtQuick 2.0 as QQ2
|
2015-10-15 14:05:37 +00:00
|
|
|
import Qt3D.Core 2.0
|
2015-10-18 08:58:19 +00:00
|
|
|
import Qt3D.Render 2.0
|
2016-02-26 17:21:20 +00:00
|
|
|
import Qt3D.Input 2.0
|
2016-04-11 12:58:17 +00:00
|
|
|
import Qt3D.Extras 2.0
|
2014-09-04 14:54:05 +00:00
|
|
|
|
|
|
|
Entity {
|
|
|
|
id : root
|
|
|
|
|
2016-02-26 17:21:20 +00:00
|
|
|
components : [
|
|
|
|
RenderSettings {
|
|
|
|
activeFrameGraph: DeferredRenderer {
|
2016-05-06 06:48:50 +00:00
|
|
|
id: frameGraph
|
2016-06-01 14:53:47 +00:00
|
|
|
camera : sceneEntity.camera
|
|
|
|
gBuffer: GBuffer {}
|
|
|
|
sceneLayer: sceneEntity.layer
|
|
|
|
screenQuadLayer: screenQuadEntity.layer
|
|
|
|
debugLayer: debugEntity.layer
|
2016-02-26 17:21:20 +00:00
|
|
|
}
|
|
|
|
renderPolicy: RenderSettings.Always
|
|
|
|
},
|
|
|
|
InputSettings {}
|
|
|
|
]
|
2014-09-04 14:54:05 +00:00
|
|
|
|
2016-06-01 14:53:47 +00:00
|
|
|
FirstPersonCameraController { camera: sceneEntity.camera }
|
2015-01-21 14:32:38 +00:00
|
|
|
|
2017-08-02 16:02:40 +00:00
|
|
|
ScreenQuadEntity {
|
|
|
|
id: screenQuadEntity
|
|
|
|
baseLight: sceneEntity.light
|
|
|
|
light1Pos: sceneEntity.light1Pos
|
|
|
|
light2Pos: sceneEntity.light2Pos
|
|
|
|
light3Pos: sceneEntity.light3Pos
|
|
|
|
light4Pos: sceneEntity.light4Pos
|
|
|
|
}
|
2016-06-01 14:53:47 +00:00
|
|
|
SceneEntity { id: sceneEntity }
|
|
|
|
GBufferDebugger { id: debugEntity }
|
2014-09-04 14:54:05 +00:00
|
|
|
}
|