Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clampValue = (value - min) / (max - min);
- clippedValue = min(1, max(0, clampValue));
- finalValue = clippedValue * scale;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement