Skip to content

Commit

Permalink
test (2:35am) RenderWebGL.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkPool-SP authored Aug 20, 2024
1 parent ca3e857 commit 519b4ba
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/RenderWebGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -1975,10 +1975,7 @@ class RenderWebGL extends EventEmitter {
}

return {
data: data,
width: bounds.width,
height: bounds.height,
color: color
data: data, width: bounds.width, height: bounds.height, color: color
};
}

Expand Down Expand Up @@ -2517,13 +2514,13 @@ class RenderWebGL extends EventEmitter {
});
}

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

// Apply extra uniforms after the Drawable's, to allow overwriting.
if (opts.extraUniforms) Object.assign(uniforms, opts.extraUniforms);
Expand Down

0 comments on commit 519b4ba

Please sign in to comment.