summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/shadow-map-qml
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2016-01-26 21:48:14 +0100
committerLiang Qi <liang.qi@theqtcompany.com>2016-01-26 21:50:16 +0100
commita359bd756a98a0462bbd039d9b76981d73dc11f7 (patch)
tree4917b25a005e75344a8f9ba60713ef5b4baa3533 /examples/qt3d/shadow-map-qml
parent3d30f6151c0c2884b1f15280301e552b5f67949c (diff)
parent5a68874f7a2f18070890bec7c3259af94abe320b (diff)
Merge remote-tracking branch 'origin/5.6' into dev
Conflicts: src/doc/src/qt3dcollision-module.qdoc src/render/frontend/qcamera.cpp src/render/frontend/qcameralens.cpp Change-Id: I8a0ae250a6b8e065a1ef3c817968ebb7ef23b20d
Diffstat (limited to 'examples/qt3d/shadow-map-qml')
-rw-r--r--examples/qt3d/shadow-map-qml/doc/src/shadow-map-qml.qdoc18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/qt3d/shadow-map-qml/doc/src/shadow-map-qml.qdoc b/examples/qt3d/shadow-map-qml/doc/src/shadow-map-qml.qdoc
index 58d76bcac..d9076e0f0 100644
--- a/examples/qt3d/shadow-map-qml/doc/src/shadow-map-qml.qdoc
+++ b/examples/qt3d/shadow-map-qml/doc/src/shadow-map-qml.qdoc
@@ -58,8 +58,8 @@
import the modules:
\quotefromfile shadow-map-qml/main.qml
- \skipto import Qt3D
- \printuntil Render
+ \skipto import Qt3D.Core
+ \printuntil Render 2.0
The first entities we create are a \l Camera, which represents the camera
used for the final rendering, and a \l Configuration, which allows us to
@@ -90,11 +90,11 @@
\section1 Specifying the Light
- We specify the Light custom entity in \e Light.qml.
+ We specify the Light custom entity in \e ShadowMapLight.qml.
Again, we import the necessary modules:
- \quotefromfile shadow-map-qml/Light.qml
+ \quotefromfile shadow-map-qml/ShadowMapLight.qml
\skipto import Qt3D
\printuntil Qt3D.Render
@@ -111,15 +111,15 @@
\section1 Configuring the Framegraph
- In Qt3D, the framegraph is the data-driven configuration for the rendering.
+ In Qt 3D, the framegraph is the data-driven configuration for the rendering.
We implement the framegraph in the \e ShadowMapFrameGraph.qml file.
- In addition to the Qt3D and Qt3D Renderer modules, we also import the
+ In addition to the Qt 3D and Qt 3D Render modules, we also import the
Qt Quick module:
\quotefromfile shadow-map-qml/ShadowMapFrameGraph.qml
- \skipto import Qt3D
- \printuntil QtQuick
+ \skipto import QtQuick
+ \printuntil Render 2.0
The code defines a \l FrameGraph entity that has a tree of entities as the
active framegraph:
@@ -157,7 +157,7 @@
\section1 Generating the Shadow Map
In the shadow map generation pass, we must render to an offscreen surface
- (Framebuffer Object) which has a depth texture attachment. In Qt3D, it is
+ (Framebuffer Object) which has a depth texture attachment. In Qt 3D, it is
represented by the RenderTarget entity, which has a number of attachments.
In this example, we need only a depth attachment. We define it as a