We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78d7cf8 + 59f8426 commit bddce17Copy full SHA for bddce17
src/webgl/p5.RendererGL.js
@@ -1310,7 +1310,10 @@ p5.RendererGL.prototype._setPointUniforms = function(pointShader) {
1310
pointShader.setUniform('uMaterialColor', this.curStrokeColor);
1311
// @todo is there an instance where this isn't stroke weight?
1312
// should be they be same var?
1313
- pointShader.setUniform('uPointSize', this.pointSize);
+ pointShader.setUniform(
1314
+ 'uPointSize',
1315
+ this.pointSize * this._pInst._pixelDensity
1316
+ );
1317
};
1318
1319
/* Binds a buffer to the drawing context
0 commit comments