backIn

ease-in function that overshoots before settling.

110 total functionsUpdated: Invalid Date

backIn

ease-in function that overshoots before settling.

Parameters

NameTypeDescription
tf32Input parameter (0-1).

Returns

f32value with back effect.

WGSL Code

fn backIn(t: f32) -> f32 {
let s = 1.70158;
let tt = clamp(t, 0.0, 1.0);
return tt * tt * ((s + 1.0) * tt - s);
}

About wgsl-fns

A JavaScript library providing WGSL utility functions as strings for WebGPU shader development. Includes mathematical utilities, noise generation, signed distance fields, and color manipulation functions.

Install:npm install wgsl-fns
Import:import { backIn, getFns } from 'wgsl-fns'
Usage:getFns(['backIn'])