Rename settings

This commit is contained in:
Andras Schmelczer 2023-05-27 19:49:53 +01:00
commit 3084ede26d
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
7 changed files with 32 additions and 34 deletions

View file

@ -119,11 +119,11 @@ export class BrushPipeline {
this.linePoints.length = 0;
}
public setParameters({ brushWidth, brushWidthRandomness }: BrushSettings) {
public setParameters({ brushWidth, brushWidthVariation }: BrushSettings) {
this.device.queue.writeBuffer(
this.uniforms,
0,
new Float32Array([brushWidth / 2, (brushWidth / 2) * brushWidthRandomness])
new Float32Array([brushWidth / 2, (brushWidth / 2) * brushWidthVariation])
);
this.actualPoints = this.linePoints.slice();