Skip to content

Commit

Permalink
Merge pull request #15 from abwood/metallic-roughness-factor-fix
Browse files Browse the repository at this point in the history
Fixed bug where metallic-roughness uniforms were immediately deleted.
  • Loading branch information
emackey authored Jun 8, 2017
2 parents 0771537 + b8128dd commit 82fc52f
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 82fc52f

Please sign in to comment.