From b8aaeb84cfa9666319d9d3bb2a43589f746034ba Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Wed, 3 Mar 2021 09:48:16 +0100 Subject: [PATCH] - threejs update 0.126.0 - no flatShading property in ShaderMaterial --- package-lock.json | 14 +++++++------- package.json | 2 +- src/js/layer/TinLayer.js | 1 - 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index b0e29de..e12587b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@fortawesome/fontawesome-free": "^5.15.2", "normalize.css": "^8.0.1", "proj4": "^2.6.3", - "three": "^0.125.1" + "three": "^0.126.0" }, "devDependencies": { "@babel/core": "^7.12.9", @@ -5852,9 +5852,9 @@ } }, "node_modules/three": { - "version": "0.125.2", - "resolved": "https://registry.npmjs.org/three/-/three-0.125.2.tgz", - "integrity": "sha512-7rIRO23jVKWcAPFdW/HREU2NZMGWPBZ4XwEMt0Ak0jwLUKVJhcKM55eCBWyGZq/KiQbeo1IeuAoo/9l2dzhTXA==" + "version": "0.126.0", + "resolved": "https://registry.npmjs.org/three/-/three-0.126.0.tgz", + "integrity": "sha512-/MecvboUefStCkUfXLImoJxthN+FoLPcEP7pz1r1Dd9i8BPGGuj+S1sOPRvW4Z+ViZjP2oWWm1inNC/MT52ybA==" }, "node_modules/to-fast-properties": { "version": "2.0.0", @@ -11156,9 +11156,9 @@ } }, "three": { - "version": "0.125.2", - "resolved": "https://registry.npmjs.org/three/-/three-0.125.2.tgz", - "integrity": "sha512-7rIRO23jVKWcAPFdW/HREU2NZMGWPBZ4XwEMt0Ak0jwLUKVJhcKM55eCBWyGZq/KiQbeo1IeuAoo/9l2dzhTXA==" + "version": "0.126.0", + "resolved": "https://registry.npmjs.org/three/-/three-0.126.0.tgz", + "integrity": "sha512-/MecvboUefStCkUfXLImoJxthN+FoLPcEP7pz1r1Dd9i8BPGGuj+S1sOPRvW4Z+ViZjP2oWWm1inNC/MT52ybA==" }, "to-fast-properties": { "version": "2.0.0", diff --git a/package.json b/package.json index 1929e67..804f1c8 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "@fortawesome/fontawesome-free": "^5.15.2", "normalize.css": "^8.0.1", "proj4": "^2.6.3", - "three": "^0.125.1" + "three": "^0.126.0" }, "author": "Arno Kaimbacher", "license": "MIT", diff --git a/src/js/layer/TinLayer.js b/src/js/layer/TinLayer.js index 02cd5c2..e4b407e 100644 --- a/src/js/layer/TinLayer.js +++ b/src/js/layer/TinLayer.js @@ -113,7 +113,6 @@ class TinLayer extends Layer { this.material = new ShaderMaterial( { clipIntersection: true, clipShadows: true, - flatShading: true, uniforms: uniforms.clipping, vertexShader: shader.vertexClipping, fragmentShader: shader.fragmentClippingFront,