summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/controls
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/controls')
-rw-r--r--examples/qt3d/controls/Logo.qml16
1 files changed, 14 insertions, 2 deletions
diff --git a/examples/qt3d/controls/Logo.qml b/examples/qt3d/controls/Logo.qml
index 2eb9abd1a..62742246f 100644
--- a/examples/qt3d/controls/Logo.qml
+++ b/examples/qt3d/controls/Logo.qml
@@ -91,8 +91,8 @@ Entity {
PhongMaterial {
id: material
- ambient: Qt.rgba( color_r.value/255, color_g.value/255, color_b.value/255, 1.0 )
- diffuse: Qt.rgba( 0.1, 0.1, 0.1, 0.5 )
+ diffuse: Qt.rgba( color_r.value/255, color_g.value/255, color_b.value/255, 1.0 )
+ ambient: Qt.rgba( 0.1, 0.1, 0.1, 1.0 )
shininess: shining.value
}
@@ -110,4 +110,16 @@ Entity {
id: logoEntity
components: [ logoMesh, material, logoTransform ]
}
+
+ Entity {
+ components: [
+ PointLight {
+ color: "white"
+ intensity: 0.6
+ },
+ Transform {
+ translation: Qt.vector3d(0, 0, 10)
+ }
+ ]
+ }
}