Rename settings
This commit is contained in:
parent
d83d5a8d4f
commit
3084ede26d
7 changed files with 32 additions and 34 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue