We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6fbab7 commit 77fbab1Copy full SHA for 77fbab1
1 file changed
src/RenderWebGL.js
@@ -2586,15 +2586,15 @@ class RenderWebGL extends EventEmitter {
2586
}
2587
2588
console.log(2, drawable.uniformApplied, !this.renderOffscreen);
2589
- if (this.renderOffscreen && !drawable.uniformApplied) {
+ if (!this.renderOffscreen && drawable.uniformApplied) {
2590
+ Object.assign(uniforms, drawable.getUniforms());
2591
+ } else {
2592
drawable.uniformApplied = true;
2593
Object.assign(
2594
uniforms,
2595
drawable.skin.getUniforms(drawableScale),
2596
drawable.getUniforms()
2597
);
- } else {
- Object.assign(uniforms, drawable.getUniforms());
2598
2599
2600
// Apply extra uniforms after the Drawable's, to allow overwriting.
0 commit comments