Update to use new SDF2D version

This commit is contained in:
schmelczerandras 2020-10-19 12:22:08 +02:00
parent f0a9c1df68
commit 9062ae04a3
14 changed files with 160 additions and 209 deletions

View file

@ -1,8 +1,8 @@
import { vec2 } from 'gl-matrix';
import { DropletFactory } from 'sdf-2d';
import { DropletFactory, rgb } from 'sdf-2d';
import { Random } from '../../helper/random';
export const Droplet = DropletFactory(1);
export const Droplet = DropletFactory(rgb(0.3, 1, 1));
export class DropletWrapper {
public readonly drawable: InstanceType<typeof Droplet>;