SuperSprites (Sprites with materials)

For my project, I needed to display plants in billboard mode and I attempted this first using Sprites because of the nice API, but then noticed there was no option to add a diffuse texture or a normal or specular map, so at night my plants were far too bright and they looked a little bland because I couldn’t add a normal map.

I therefore decided to write a quick sorta-drop-in replacement for the Sprite and SpriteManager classes, which you can look at here:

Please note that not all features of the original sprite class are implemented yet, and that animations always apply to all sprites. But maybe someone other than me also has a use for it, so I’m putting it out there.

Gitlab: M. Wagner / BabylonSuperSprite · GitLab
I’ll update the git if I ever add new features.