easeOut

ease-out function for smooth deceleration.

110 total functionsUpdated: Invalid Date

easeOut

ease-out function for smooth deceleration.

Parameters

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

Returns

f32value.

WGSL Code

fn easeOut(t: f32, power: f32) -> f32 {
return 1.0 - pow(1.0 - 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 { easeOut, getFns } from 'wgsl-fns'
Usage:getFns(['easeOut'])