Skip to main content Link Menu Expand (external link) Document Search Copy Copied
gainFn

gainFn

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: