You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GLSL doesn't have a saturate function - so I'm using clamp( value, 0.0, 1.0 ) instead. Currently this is being compiled down to a pair of min/max instructions, and requires the use of an additional temporary register (Something I can't afford in complex shaders).
As AGAL supports sat, would it be possible to reduce this case down to a single instruction?
The text was updated successfully, but these errors were encountered:
GLSL doesn't have a saturate function - so I'm using clamp( value, 0.0, 1.0 ) instead. Currently this is being compiled down to a pair of min/max instructions, and requires the use of an additional temporary register (Something I can't afford in complex shaders).
As AGAL supports sat, would it be possible to reduce this case down to a single instruction?
The text was updated successfully, but these errors were encountered: