Skip to content

Commit

Permalink
Fixed bug where metallic-roughness uniforms were immediately deleted …
Browse files Browse the repository at this point in the history
…if metallic-roughness texture was present. Fixes #11
  • Loading branch information
abwood committed Jun 7, 2017
1 parent 0771537 commit b8128dd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']) {
Expand Down

0 comments on commit b8128dd

Please sign in to comment.