summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/lights
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2018-04-03 17:19:43 +0100
committerJani Heikkinen <jani.heikkinen@qt.io>2018-04-04 13:31:46 +0000
commit2a260617b96281375e2ee018af8c7547d99e4a6d (patch)
treea5aee129a69c0b2e9b6dab42a5fcddd17f3c5361 /examples/qt3d/lights
parent634529d899e99c2fb40429d3d0be6295aa444a40 (diff)
Add replacement materials examplev5.11.0-beta3
All texture assets were made by KDAB under the CLA. The material "sphere" mesh is from Allegorithmic and published under the Creative Commons 4 license. See paragraph 1.2 of https://www.allegorithmic.com/legal/substance-share Task-number: QTBUG-61415 Change-Id: I23d61723bbac561e22e11fa57105b29148c01699 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Andy Nichols <andy.nichols@qt.io> (cherry picked from commit 74c06c02f896c6aba408cfd0857d317378572736)
Diffstat (limited to 'examples/qt3d/lights')
-rw-r--r--examples/qt3d/lights/main.qml11
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/qt3d/lights/main.qml b/examples/qt3d/lights/main.qml
index c676335c4..38a283d37 100644
--- a/examples/qt3d/lights/main.qml
+++ b/examples/qt3d/lights/main.qml
@@ -183,8 +183,15 @@ Entity
material: NormalDiffuseMapMaterial {
ambient: Qt.rgba( 0.2, 0.2, 0.2, 1.0 )
- diffuse: TextureLoader { source: "assets/textures/pattern_09/diffuse.webp" }
- normal: TextureLoader { source: "assets/textures/pattern_09/normal.webp" }
+ diffuse: TextureLoader {
+ source: "assets/textures/ceramic_small_diamond/ceramic_small_diamond_basecolor.png"
+ format: Texture.SRGB8_Alpha8
+ generateMipMaps: true
+ }
+ normal: TextureLoader {
+ source: "assets/textures/ceramic_small_diamond/ceramic_small_diamond_normal.png"
+ generateMipMaps: true
+ }
textureScale: 10
shininess: 10
}