Improve variable semantics

This commit is contained in:
Andras Schmelczer 2023-05-27 10:49:19 +01:00
commit 0f5dd1f820
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -123,7 +123,7 @@ export class BrushPipeline {
this.device.queue.writeBuffer(
this.uniforms,
0,
new Float32Array([brushWidth / 2, brushWidthRandomness])
new Float32Array([brushWidth / 2, (brushWidth / 2) * brushWidthRandomness])
);
this.actualPoints = this.linePoints.slice();