Bug with directional lights and translucent sprite material (w shadows)

No matter what I do, every time I try to light a translucent sprite material with a directional light my sprite gets strange, black artifacts when I enable volumetric shadows. I’m pretty sure this is a bug or maybe it has something to do with self shadowing? I’m not sure.

Any help would be appreciated.

Hi Johnny,

This is not actually a bug, but an artifact of using “cast volumetric translucent shadows” with highly opaque objects.

The better course of action here is to use a masked material to generate correct shading.

I hope this helps.

Does this mean I cannot have a sprite that appears to “glow,” with high transparent edges, yet casts a shadow?

You can use the emissive input to get your sprite to “glow.” In the examples below I just used the base color of my texture plugged into a multiply with a constant value of 1 in pin B. I then plugged the multiply into the emissive slot.

Here are the results and the problems that come with that.

Everything appears without the artifacts that cast volumetric translucent shadow causes.

The problem comes in shadows. Since it’s using an emissive material shadows will hide the artifacts, but make it not possible to cast shadows onto your sprite.

Thanks for your help Tim! You’ve been great!