Add basic tiled rendering
This commit is contained in:
parent
854e5a55a1
commit
edffd22c2e
1 changed files with 353 additions and 170 deletions
|
|
@ -1,4 +1,5 @@
|
|||
export const clamp = (value: number, min: number, max: number): number =>
|
||||
Math.min(max, Math.max(min, value));
|
||||
|
||||
export const clamp01 = (value: number): number => clamp(value, 0, 1);
|
||||
export const clamp01 = (value: number): number =>
|
||||
Math.min(1, Math.max(0, value));
|
||||
|
|
|
|||
Loading…
Reference in a new issue