clamp01
Constants
- saturate :
function
Shortcut following GLSL naming, see clamp01
Functions
- clamp01(value) ⇒
number
Clamps a value to 0..1 range
Same as clamp(value, 0, 1)
Works the same as saturate function in GLSL
saturate : function
Shortcut following GLSL naming, see clamp01
Kind: global constant
clamp01(value) ⇒ number
Clamps a value to 0..1 range
Same as clamp(value, 0, 1)
Works the same as saturate function in GLSL
Kind: global function
| Param | Type |
|---|---|
| value | number |