Variance Shadow Maps

Started by
20 comments, last by AndyTX 17 years, 1 month ago
I can't find any documentation on these "linstep" and "linsmooth" functions. What are they and how can I implement them?
Advertisement
smoothstep is a built-in intrinsic function. linstep isn't for some reason but can be trivially implemented:

float linstep(float min, float max, float v){    return clamp((v - min) / (max - min), 0, 1);}

You can of course vectorize this if required. It can also be implemented in terms of lerp, but there's no real advantage in that. since the divide is required in either case.

This topic is closed to new replies.

Advertisement