easeIn

ease-in function for smooth acceleration.

110 total functionsUpdated: Invalid Date

easeIn

ease-in function for smooth acceleration.

Parameters

NameTypeDescription
tf32Input parameter (0-1).
powerf32Easing power (higher = more pronounced curve).

Returns

f32value.

WGSL Code

fn easeIn(t: f32, power: f32) -> f32 {
return pow(clamp(t, 0.0, 1.0), power);
}

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 { easeIn, getFns } from 'wgsl-fns'
Usage:getFns(['easeIn'])