- Insert gradient ramp, bias setting, and influence control.
- Gradient midpoint figured from bias setting.
- Power node controls gradient midpoint and pinches/expands gradient around bias setting
This expression is purely linear, but does a fantastic job biasing values with controlled influence and without losing range.

The bump for this biasing technique is 11 pixel shading instructions.
This has a lot of practical applications from processing or blending colors and textures in materials to more useful technical purposes biasing values. I'm using this to bias values from random number/seed generators to favor one part of the spectrum over another without losing the full range.
The power node/Influence variable is a bit weird to use, as the negative range is particularly aggressive while the positive range progresses slowly and continues forever. It can be more helpful to square the Influence setting for positive values, but squares do not result in negative values at all.
No comments:
Post a Comment