diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-12-10 13:16:21 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-12-10 13:46:31 +0000 |
commit | 3b699444951a5467249c36f47bd3489591971569 (patch) | |
tree | 88b42d8a4c179188e58292501f1e02db3043002e /examples | |
parent | 5e94c15ddc89779c6da7ae919985688173a4d20d (diff) |
Reduce specular reflectivity defaults
0.95 -> 0.01 to prevent eye-poppingly white specular highlights.
Change-Id: I3e765bad13afe991053932e73cea13b95c950c1c
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qt3d/bigscene-cpp/entity.cpp | 4 | ||||
-rw-r--r-- | examples/qt3d/lights/main.qml | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/examples/qt3d/bigscene-cpp/entity.cpp b/examples/qt3d/bigscene-cpp/entity.cpp index f42f6a18b..7a13a6fb7 100644 --- a/examples/qt3d/bigscene-cpp/entity.cpp +++ b/examples/qt3d/bigscene-cpp/entity.cpp @@ -52,10 +52,6 @@ Entity::Entity(Qt3DCore::QNode *parent) m_mesh->setRadius(2.5f); m_mesh->setLength(5.0f); - m_material->setAmbient(Qt::black); - m_material->setSpecular(Qt::white); - m_material->setShininess(150.0f); - addComponent(m_mesh); addComponent(m_transform); addComponent(m_material); diff --git a/examples/qt3d/lights/main.qml b/examples/qt3d/lights/main.qml index 7f103002f..99bc1147d 100644 --- a/examples/qt3d/lights/main.qml +++ b/examples/qt3d/lights/main.qml @@ -157,6 +157,7 @@ Entity components: [ PhongMaterial { diffuse: "white" + shininess: 50 }, Mesh { source: "assets/obj/toyplane.obj" |