Seokku
Seokku

Reputation: 11

Lights pass through the objects in unity

I'm having a trouble, I'm trying to create a dark scene for my project, but, when I add lights, the lights pass through the objects, it has no sense, becouse it pass through the walls.

Light beside of an object Light beside of an object

Light passing through the object Light passing through the object

I tried setting my objects to static, but it is not working.

Also I tried setting Bias in my Universal Render Pipeline settings to 0, but, the same.

Upvotes: 1

Views: 2746

Answers (1)

Zirok
Zirok

Reputation: 11

I know I'm a year late but I had the same problem recently and this is not because the object isn't casting shadows or light is passing through it. This problem is because of shadow strength. If the shadow strength value is lower than 1 Shadows won't be as black as desired. Set the shadow strength value to 1 in your light component and you're good to go.

Upvotes: 1

Related Questions