We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bc9bb4 commit f93d70eCopy full SHA for f93d70e
src/webgl/primitives.js
@@ -815,13 +815,25 @@ p5.RendererGL.prototype.ellipse = function(args) {
815
816
p5.RendererGL.prototype.rect = function(args) {
817
var perPixelLighting = this.attributes.perPixelLighting;
818
- var gId = 'rect|' + args[0] + '|' + args[1] + '|' + args[2] + '|' + args[3];
819
var x = args[0];
820
var y = args[1];
821
var width = args[2];
822
var height = args[3];
823
var detailX = args[4] || (perPixelLighting ? 1 : 24);
824
var detailY = args[5] || (perPixelLighting ? 1 : 16);
+ var gId =
825
+ 'rect|' +
826
+ x +
827
+ '|' +
828
+ y +
829
830
+ width +
831
832
+ height +
833
834
+ detailX +
835
836
+ detailY;
837
if (!this.geometryInHash(gId)) {
838
var _rect = function() {
839
var u, v, p;
0 commit comments