Skip to content

Commit bddce17

Browse files
authored
Merge pull request #4953 from AliLordLoss/main
adjusted value of pointSize when passing to shader to fix issue num #…
2 parents 78d7cf8 + 59f8426 commit bddce17

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/webgl/p5.RendererGL.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,10 @@ p5.RendererGL.prototype._setPointUniforms = function(pointShader) {
13101310
pointShader.setUniform('uMaterialColor', this.curStrokeColor);
13111311
// @todo is there an instance where this isn't stroke weight?
13121312
// should be they be same var?
1313-
pointShader.setUniform('uPointSize', this.pointSize);
1313+
pointShader.setUniform(
1314+
'uPointSize',
1315+
this.pointSize * this._pInst._pixelDensity
1316+
);
13141317
};
13151318

13161319
/* Binds a buffer to the drawing context

0 commit comments

Comments
 (0)