PurpleKingdomGames / ultraviolet

Scala 3 to GLSL transpiler library
https://ultraviolet.indigoengine.io/
MIT License
59 stars 2 forks source link

Possible missing `clamp` variations #95

Closed davesmith00000 closed 10 months ago

davesmith00000 commented 1 year 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.

What does the spec say? Is clamping a vecN with a float valid?