MCPcopy
hub / github.com/rdev/liquid-glass-react / ShaderOptions

Interface ShaderOptions

src/shader-utils.ts:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected