Hey guys!
I’m having this weird problem with decals in libGDX. Here’s an example (rendering decals underneath trees):
I was hoping to make some nice shadows though.
This is how I am drawing the decals:
decalBatch.add(shadow);
decalBatch.flush();
This is how the batch is set up:
groupStrategy = new CameraGroupStrategy(rCamera, new ZStrategyComparator());
decalBatch = new DecalBatch(groupStrategy);
This was following instructions found on http://stackoverflow.com/questions/25312161/libgdx-andorid-black-background-on-transparent-decalsprites
The actual image I’m rendering looks like this (format is RGBA8888):
So, any ideas?