diff options
author | Pasi Keränen <pasi.keranen@digia.com> | 2015-05-26 19:37:57 +0300 |
---|---|---|
committer | Pasi Keränen <pasi.keranen@digia.com> | 2015-05-27 04:42:15 +0000 |
commit | aa8f6cbe8149bfbb23540b8a05d5d9ba7ff6de31 (patch) | |
tree | 7d357c9ed9e983fd87fc68f3191e00c163deceba /examples | |
parent | 803639ca13fa7769f74d08cf2a3f2e05f69c7273 (diff) |
Tweaking the shininess of the planets in Planets example.
The shininess of the planets in the example were left to the default 30.0 which is
quite shiny. To achieve more realistic look'n'feel the planets with specular texture
(earth) are tweaked to be a bit more shiny and the planets without a specual texture
(the rest) are tweaked to be not shiny at all.
Change-Id: I01acf6789cc632c8fba9be80a0792ae9170d05fd
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
Reviewed-by: Pasi Keränen <pasi.keranen@digia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/canvas3d/canvas3d/threejs/planets/planets.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/canvas3d/canvas3d/threejs/planets/planets.js b/examples/canvas3d/canvas3d/threejs/planets/planets.js index c689075..21a08aa 100644 --- a/examples/canvas3d/canvas3d/threejs/planets/planets.js +++ b/examples/canvas3d/canvas3d/threejs/planets/planets.js @@ -287,7 +287,11 @@ function createPlanet(radius, scale, mapTexture, bumpTexture, specularTexture) { if (specularTexture) { material.specularMap = THREE.ImageUtils.loadTexture(specularTexture); material.specular = new THREE.Color('grey'); + material.shininess = 50.0; + } else { + material.shininess = 1.0; } + var mesh = new THREE.Mesh(commonGeometry, material); mesh.scale.set(radius, radius, radius); |