aaStep HLSL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Smooth equivalent to step(a, b) and both a and b can have their value change. | |
float aaStepFastBoth(float a, float b) { | |
return saturate((b - a) / max(fwidth(b), fwidth(a))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment