summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2015-12-22 09:53:55 +0100
committerSean Harmer <sean.harmer@kdab.com>2016-01-14 21:36:08 +0000
commitee83fb6e9fd0da37fe5f41bc39d6cbdf4cfbfd60 (patch)
treea573cc6174b91f474bcdfb2bf1fa53bd86af9a14
parent4a44b6520ff8add3dd65be6224fd7410e5405939 (diff)
instanced examples: Add proper annotations to technique
This wasn't needed before because the TechniqueFiltering was broken. This is now needed to respect the intended behavior. Change-Id: I4f28e9757a6e726ab45a7806a74b34553e700aea Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
-rw-r--r--examples/qt3d/bigscene-instanced-qml/main.qml1
-rw-r--r--examples/qt3d/instanced-arrays-qml/main.qml1
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/qt3d/bigscene-instanced-qml/main.qml b/examples/qt3d/bigscene-instanced-qml/main.qml
index 181a936da..cc04d3290 100644
--- a/examples/qt3d/bigscene-instanced-qml/main.qml
+++ b/examples/qt3d/bigscene-instanced-qml/main.qml
@@ -78,6 +78,7 @@ Entity {
minorVersion: 2
majorVersion: 3
}
+ annotations: Annotation { name: "renderingStyle"; value: "forward" }
renderPasses: RenderPass {
shaderProgram: ShaderProgram {
vertexShaderCode: loadSource("qrc:/instanced.vert")
diff --git a/examples/qt3d/instanced-arrays-qml/main.qml b/examples/qt3d/instanced-arrays-qml/main.qml
index c10201396..90344c1d0 100644
--- a/examples/qt3d/instanced-arrays-qml/main.qml
+++ b/examples/qt3d/instanced-arrays-qml/main.qml
@@ -76,6 +76,7 @@ Entity {
minorVersion: 2
majorVersion: 3
}
+ annotations: Annotation { name: "renderingStyle"; value: "forward" }
renderPasses: RenderPass {
bindings: [
ParameterMapping { parameterName: "pos"; shaderVariableName: "pos"; bindingType: ParameterMapping.Attribute }