From bc4a58f7882d04e772050710e6607b0554797c4d Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 12 Feb 2018 13:08:24 +0100 Subject: [PATCH] Update: CC - Demo New - Key Up (194yv3pctj.js) 38 bytes modified --- 194yv3pctj.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/194yv3pctj.js b/194yv3pctj.js index 8251f2e..bf9274c 100644 --- a/194yv3pctj.js +++ b/194yv3pctj.js @@ -52,7 +52,8 @@ if (data.code === 'KeyL') { this.meshImageGrid.geometry.instance = this.instancedGeometry.instance; - this.meshImageGrid.materials[0].instance.needsUpdate = true; + this.meshImageGrid.materials[0].createInstance(); + this.meshImageGrid.updateInstance('materials'); console.log('got data'); }