g3n / engine

Go 3D Game Engine (http://g3n.rocks)
https://discord.gg/NfaeVr8zDg
BSD 2-Clause "Simplified" License
2.74k stars 292 forks source link

Is there a way to crop images? #274

Closed 529124368 closed 8 months ago

529124368 commented 2 years ago

Is there a way to crop pictures in G3N? Because when I need to do the game UI, I need to dynamically transform a blood cell picture to achieve the effect of adding blood and reducing blood.

danaugrs commented 2 years ago

You can probably achieve the same effect by manipulating panels, e.g. putting a panel on top of another to hide the one below. You might be able to modify the panel's UV coordinates, although I'm not sure if that's exposed.