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?
Right, and I'm interested in *literally* arbitrary vector shapes. Limitations are real-time and fairly strict memory limitations.
-
-
You could render the arbitrary shape to a texture, then use that texture as an alpha mask for the UI elements you’d like to clip.
-
Compositing operation makes sense but it sounds like the goal here is to do it before it hits the fragment shader stage (or heavily optimize the fragment shader)
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.