g_Stair_Step

Reference
Index

    This generator is a that increases linearly in a sequence of steps.

How Does It Work?

    The STAIR STEP generator provides a stair step function curve. By changing the Slant, you set how steep the vertical part of each step is. The Number Of Steps lets you control the number of discreet steps that occur going from 0% to 100%.  The Repeat Flag will make the function repeat by mirroring each every other cycle. The standard generator parameters are included for manipulating the function curve.

Hints!

    STAIR STEP's primary use is in discreetising the number of levels in a gradient. To do this, link STAIR STEP to a Blend Function.  You can also use it to create toon shader type effects when linked to the Diffuse or Specular Function of the DarkTree Shader.

Standard Generator Parameters

 

Amplitude

Describes the function height above and below the horizontal axis. The default value is 50.0%. Increase the function height up to 100.0% or it flatten out at 0.0%.

 

Shift

Repositions the function vertically, above or below its default position on the horizontal axis. At 100.0% the function is entirely above this axis; at 0.0% it's entirely below. The default is 50.0%.

 

 

 

 

Frequency

Compresses the function horizontally when the value is greater than the default of 1.0. Or stretches the function horizontally when the value is less than 1.0.

 

Phase Amount

Phase repositions the function along the horizontal axis. Phase Amount gives a percent value for the phase range set by Phase Min and Phase Max.

 

 

 

 

Phase Min

Sets one end of the phase range.

 

 

 

 

Phase Max

Sets the other end of the phase range.

 

Lower Clamp

Controls the minimum function value. The default is 0.0%.

 

Upper Clamp

Controls the maximum function value. The default is 100.0%.

 

 

 

 

Invert

When enabled, flips the function about the horizontal axis.

 

 

 

 

Reverse

When enabled, reverses the function. For symmetrical functions, you may not see the difference.

 

Input

Function re-mapping input. Link this to an linear time component to shift the function into the time domain.

Percent Component Parameters

 

 

 

 

Repeat Flag

This control when enabled causes the function to repeat by mirroring every other cycle.

 

 

 

 

Number Of Steps

The number of stair steps in the linear section of a cycle.

 

 

 

 

Slant

How vertical each section of the function is.  0% is completely vertical while 100% slants the steps to the point where they disappear.

Darkling Simulations
Copyright 1996-2003