| 6 | } |
| 7 | |
| 8 | export interface ShaderOptions { |
| 9 | width: number |
| 10 | height: number |
| 11 | fragment: (uv: Vec2, mouse?: Vec2) => Vec2 |
| 12 | mousePosition?: Vec2 |
| 13 | } |
| 14 | |
| 15 | function smoothStep(a: number, b: number, t: number): number { |
| 16 | t = Math.max(0, Math.min(1, (t - a) / (b - a))) |
nothing calls this directly
no outgoing calls
no test coverage detected