From 0f5dd1f82092a18f36c66c3e1b2f9761f9a95611 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sat, 27 May 2023 10:49:19 +0100 Subject: [PATCH] Improve variable semantics --- src/pipelines/brush/brush-pipeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipelines/brush/brush-pipeline.ts b/src/pipelines/brush/brush-pipeline.ts index 4413b24..ca97efd 100644 --- a/src/pipelines/brush/brush-pipeline.ts +++ b/src/pipelines/brush/brush-pipeline.ts @@ -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();