Graphics twitter, how do you handle clipping of child UI elements inside of another element that has arbitrary vector graphics? Rounded corners being an example that comes to mind. Stencil? Something else?
I’m still in the early stages, but cpu clipping is already what I’m doing for oriented shapes inside of oriented shapes. I don’t really want to tesselate a rounded corner though.
-
-
If you just need to prevent fragments from being written there, you could provide the parametric form to the fragment shader and simply discard while outside, or maybe an SDF?
-
You're right on track with what I'm thinking. Again, in early stages, but I plan on using something like this already for a shape's own rejection of fragments. Doing also the parent's rejection... I need to think it through.
- Näytä vastaukset
Uusi keskustelu -
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.