Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setuniform #6474

Merged
merged 10 commits into from
Oct 16, 2023
6 changes: 6 additions & 0 deletions src/webgl/p5.RendererGL.Immediate.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ p5.RendererGL.prototype.vertex = function(x, y) {
u /= this._tex.width;
v /= this._tex.height;
}
} if (
Gaurav-1306 marked this conversation as resolved.
Show resolved Hide resolved
(this.userFillShader !== undefined ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor style comment: I think we can take out the extra set of brackets around the if condition.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Let me make the changes!

this.userStrokeShader !== undefined ||
this.userPointShader !== undefined)
) {
// Do nothing if user-defined shaders are present
} else if (
this._tex === null &&
arguments.length >= 4
Expand Down
Loading