To test OpenGL2: comment addTechnique(m_gl3Technique); in finaleffect.cpp
Note: also fixed the FrameGraph tree, the draw screen quad was executed first
and then the fill GBUffer, it still worked as the screen quad reused the
GBuffer from the previous frame.
Change-Id: I52c0c11017e057a5042804ad49ccd1a3baf1d857
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Created subclass of QShaderData to hold all lights for the scene.
GL3 shader updated accordingly.
For GL2/ES2 to work, QShaderData uniform struct support needs to be
implemented
Change-Id: I5560eac23234e53feba18b607276159989700141
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
The Qt3D::Window doesn't contain the QAspectEngine anymore. This will allow
to to pass any kind of surface to the QAspectEngine.
We could still have a wrapper like QQuickView around the QQmlAspectEngine if
needed but if it weren't for the camera controller that we need to keep a
little longer, a simple QWindow could be used in every example.
All examples were updated.
Change-Id: I4921df0df6f1066cd409ea886faf41d7e8834ef6
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
The scene root is now also enforced to be a QEntity as that is what we
were checking for in the backend anyway as it is impossible to create
a plain QNode.
This is another step towards solving the shutdown crashing bug.
Change-Id: I8508afa80ec9e99954ab867be1ed28bc35405e79
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
All examples updated to work with the modifications.
Change-Id: I51a3036fa750ca297a2180c488747d0878b940a4
Task-number: QTBUG-41543
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Move almost everything to private classes.
Assimp loading restored.
All examples working.
QNode hierachy is now handled through QObject::setParent, addChild,
removeChild are part of the private api.
Note: commented QChangeArbiter unit tests as they can no longer work with this
patch and will restore them when QChangeArbiter will have been made private.
Task-number: QTBUG-41470
Task-number: QTBUG-41523
Change-Id: I4430974b3aa7f3744c38714b451b122e0cb4d0c9
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>