Rounded corner clipping #886
Replies: 3 comments 8 replies
-
yeah i would like this so you could round images |
Beta Was this translation helpful? Give feedback.
-
The short answer is no. WebGL provides a built-in feature for clipping to a rectangle (called scissor test). Before each clipped sprite is drawn, this extension enables and configures that feature and afterwards disables it. This extension just injects some new code into existing turbowarp code. Anything other than purely a rectangle can't be done as easily and requires significant changes to how turbowarp's sprite-drawing code works. Doing that is a bad idea because other extensions also rely on that code. Or GarboMuffin may decide to change it. So less changes extension does = better compatibility. |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to add a rounded corner function on the clipping & blending project? It would be great if you could choose the radius of the corners! 👍 @Xeltalliv
Something like this would be cool :)
Beta Was this translation helpful? Give feedback.
All reactions