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?
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.
-
-
This probably best describes the issue. The parent (red) has it's own parameter or SDF (pick your flavor) describing pixel rejection. If you imagine the child's rounded corner inside of the parent sphere, it needs to reject based on two parameters/SDFs.pic.twitter.com/9awUFynIQB
-
If you can sort so that children are rendered first, you could use the depth buffer couldn't you? Just let early-z deal with discarding fragments.
Keskustelun loppu
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.