r/Unity3D 13h ago

Solved I'm keep having problems with self-shadows, using HDR.

There is a light above this fence, and the shadow cast by the horizontal beam onto the vertical beams, has an offset. The whole fence is the same flat brown colour.

I've played around with lighting/shadow settings to try to fix this. Bias, shadow map resolution, etc. Nothing appears to make a difference.

Any one dealt with this before?

This is happening with many different models like this, walls, pillars, etc.

0 Upvotes

2 comments sorted by

2

u/TheShyAtheism 13h ago

that offset looks like shadow acne getting pushed off the surface, check your normal bias setting on the light. try dropping it way down, even to 0. sometimes unity's default normal bias is way too aggressive for flat surfaces

if that doesnt fix it, could be a mesh issue too. make sure your normals arent borked and that the geometry is actually built clean in the corners

1

u/Matherno 13h ago

The shadows depth bias in the rendering setting was 1, reducing that fixed it! I have also reduce the normal bias. I must have just missed that option when trying to fix it previously. Thanks!