gainFn

gainFn

function
gainFn
RayTK
v0.42

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

Name Description Regular Handling Read-Only Handling
Exponent Runtime Baked

Inputs

  • Exponent Field: (optional)
    • Coordinate Types: float
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float