Skip to content

Commit

Permalink
Browser-GUI: Use 'mediump' for threejs materials
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Nov 4, 2019
1 parent db1e0ce commit 15f9cab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions browser-gui/src/sceneviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class SceneViewer {

createReference() {
let reference = new THREE.Group();
let material = new THREE.MeshPhongMaterial({ color: 0x2685AA });
let material = new THREE.MeshPhongMaterial({ color: 0x2685AA, precision: 'mediump' });
let mesh = new THREE.Mesh(kiteGeometry(), material);
mesh.scale.set(0.6, 0.6, 0.6);
reference.add(mesh);
Expand Down Expand Up @@ -302,7 +302,7 @@ export class SceneViewer {

createSource() {
//let kiteMaterial = new THREE.MeshBasicMaterial({ color: 0x2685AA });
let kiteMaterial = new THREE.MeshPhongMaterial({ color: 0xBC7349 });
let kiteMaterial = new THREE.MeshPhongMaterial({ color: 0xBC7349, precision: 'mediump' });
//let kiteMaterial = new THREE.MeshLambertMaterial({ color: 0xBC7349 });

let mesh = new THREE.Mesh(kiteGeometry(), kiteMaterial);
Expand Down Expand Up @@ -349,7 +349,7 @@ export class SceneViewer {
// TODO: check if loudspeakers is array
// TODO: make sure no loudspeakers exist yet

let material = new THREE.MeshPhongMaterial({ color: 0x2685AA });
let material = new THREE.MeshPhongMaterial({ color: 0x2685AA, precision: 'mediump' });
for (let ls of loudspeakers) {
// TODO: check if ls is object?

Expand Down

0 comments on commit 15f9cab

Please sign in to comment.