How to make realistic light?

How to make light that can be block by walls???

2 Likes

Your best bet is probably raycasting, magnitude checking, etc

1 Like

When using a light of any type (pointlight, spotlight etc) go to the “properties” tab and enable “shadows”.

2 Likes

Adding onto this, make sure all lights are at a fairly low brightness and have a soft colour so when you add more later it isn’t brighter then heaven.

Also make sure to use “Future” as the lighting technology under Lighting for the best results:

image

2 Likes

Will it prevent the light from shining through walls???Cause I’m working on a PvP game in a indoor dark place with torch. Anyway thx guys =D

1 Like

Future will do that just make sure to keep lights with shadows a minimum as low end computers will have issues running it

2 Likes

You can make your walls 4-5 wide and light won’t leak in

2 Likes