Closed davesmith00000 closed 10 months ago
Currently you cannot do clamp(vec4(1.0f), 0.0f, 1.0f), you have to do clamp(vec4(1.0f), vec4(0.0f), vec4(1.0f)). Same with vec2 and vec3.
clamp(vec4(1.0f), 0.0f, 1.0f)
clamp(vec4(1.0f), vec4(0.0f), vec4(1.0f))
vec2
vec3
What does the spec say? Is clamping a vecN with a float valid?
vecN
float
Currently you cannot do
clamp(vec4(1.0f), 0.0f, 1.0f)
, you have to doclamp(vec4(1.0f), vec4(0.0f), vec4(1.0f))
. Same withvec2
andvec3
.What does the spec say? Is clamping a
vecN
with afloat
valid?