From b8128dd1bc8cbd6e165631efbf5f629d3a5b2407 Mon Sep 17 00:00:00 2001 From: Alex Wood Date: Wed, 7 Jun 2017 12:59:38 -0400 Subject: [PATCH] Fixed bug where metallic-roughness uniforms were immediately deleted if metallic-roughness texture was present. Fixes #11 --- scene.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/scene.js b/scene.js index d4d2e431..c92cd27f 100644 --- a/scene.js +++ b/scene.js @@ -252,9 +252,6 @@ class Mesh { this.glState.uniforms['u_MetallicRoughnessSampler'] = { 'funcName': 'uniform1i', 'vals': [samplerIndex] }; samplerIndex++; this.defines.HAS_METALROUGHNESSMAP = 1; - if (this.glState.uniforms['u_MetallicRoughnessValues']) { - delete this.glState.uniforms['u_MetallicRoughnessValues']; - } } else { if (this.glState.uniforms['u_MetallicRoughnessSampler']) {