- Home /
Black stripes shadows
Hello, I add a point light with hard shadow and i get black stripes on walls when it's on in low resolution shadow, so i search how remove them or reduce. Thanks.
Image : http://prntscr.com/20ubyw
Try adjusting some of the shadow values such as shadow bias also try baking the shadows for static objects.
Thanks karljj - but I have been over all these tings many times. An many other.
You are right about baked shadows though - the resolution of this usually removes the problem. However, using dual lightmaps they show up again in the game :P
$$anonymous$$ipmaps could also be an issue - but I'm using Toon / cell shaders so they do not apply.
Standing is the problem and no answer from Unity.
Answer by Weaver · Jul 15, 2018 at 12:30 AM
If anyone stumbles across this in 2018+ , in your directional light under "shadows" try increasing the resolution. It will get rid of banding on steep angles.
Answer by Cereal_Killa · Feb 01, 2015 at 08:32 AM
I get the same problem when there is a very small angle between the plane and the light. The only solution that I found was to turn off shadow casting for the object.
It's a bit sad that no one from unity has answered this question in over a year. Do they not care about their paying customers?
I've been doing game graphics for over 10 years and have been dealing with this exact issue for all of them and in every engine I have used. As Cereal_$$anonymous$$illa said, it's most likely that the surface is too parallel to the inco$$anonymous$$g light and so it is shadowing itself, but, because of precision errors and shadow map resolution it results in banding. I'm surprised to hear that increasing the shadow bias doesn't solve the problem though. Otherwise, if at all possible, edit your light's angle or your object's angle to avoid the issue.
Answer by Fritsl · Feb 24, 2015 at 03:42 AM
Thanks a bunch Louis.
It so happens that I'm lighting the large rounded corner of a building with directional sunlight that needs to be on one side and not the other for narrative reasons..
But I guess I'll have to think of a different architecture or something ;)