gainFn

gainFn

function
gainFn
RayTK
v0.36

A function that expands the sides of the coordinate range and compresses the center.

Effectively what that means is that it smooths out transition from 0 to 1 in various ways.

Based on Inigo Quilez’s article.

Parameters

  • Exponent: