Add simple tests & remove !

This commit is contained in:
Andras Schmelczer 2026-05-04 10:31:46 +01:00
commit be0a49a11f
17 changed files with 1418 additions and 124 deletions

View file

@ -2,7 +2,6 @@ import { vec2 } from 'gl-matrix';
import { clamp } from '../../utils/clamp';
import { smartCompile } from '../../utils/graphics/smart-compile';
import { last } from '../../utils/last';
import { CommonState } from '../common-state/common-state';
import { BrushSettings } from './brush-settings';
import shader from './brush.wgsl?raw';
@ -188,7 +187,7 @@ export class BrushPipeline {
result.push(position);
}
result.push(last(points)!);
result.push(points[points.length - 1]);
return result;
}