Skip to content

Commit

Permalink
try dis
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkPool-SP authored Aug 20, 2024
1 parent c6fbab7 commit 77fbab1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RenderWebGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -2586,15 +2586,15 @@ class RenderWebGL extends EventEmitter {
}

console.log(2, drawable.uniformApplied, !this.renderOffscreen);
if (this.renderOffscreen && !drawable.uniformApplied) {
if (!this.renderOffscreen && drawable.uniformApplied) {
Object.assign(uniforms, drawable.getUniforms());
} else {
drawable.uniformApplied = true;
Object.assign(
uniforms,
drawable.skin.getUniforms(drawableScale),
drawable.getUniforms()
);
} else {
Object.assign(uniforms, drawable.getUniforms());
}

// Apply extra uniforms after the Drawable's, to allow overwriting.
Expand Down

0 comments on commit 77fbab1

Please sign in to comment.