- Home /
Sprite goes black when using a diffuse shader
Hi all, when I change my sprite from the default material to use a cutout diffuse shader, the sprite just goes black. I have lights in the scene and have tried all different varieties of legacy cutout and transparent shaders, but whenever I use something other than the default sprite I cannot light them up.
Is there anyway to get a 2D sprite to be affected by a light?
Answer by hexagonius · Sep 25, 2015 at 10:04 AM
If you're using Unity Sprites, you either use one of the two shaders for sprites or write your own. all the others do not work for the component.
I tried those but neither of them allow lighting. I have a custom shader that worked on a previous game (built in 4x) but that just makes the sprite black too.
I tried using this here: http://forum.unity3d.com/threads/sprites-bumped-diffuse-shader-and-transparent-cutout-bumped-diffuse-with-shadows.217827/
But no luck, just a black sprite