Skip to main content

clamp01

Constants

Shortcut following GLSL naming, see clamp01

Functions

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

ParamType
valuenumber