Light dims the closer you get

I’m trying to create a Backrooms type game and I have a stage that is all dark. In the stage you get a flashlight to navigate your way through to the exit. The only issue is, whenever I approach a wall the flashlight light appears to go through to the next wall and not shine on the wall in front of you. Here is a gif to show the problem: The Backrooms Obby - Roblox Studio (gyazo.com)

(I’m using ShadowMap lighting)

2 Likes

Does the flashlight use a beam effect?

It has both a beam and spotlight

Im not too familliar in this area, but I believe the beam will go through the wall, while the spotlight will reflect against it… are the spotlight properties strong enough to be seen against the wall?

Edit: nvm i watched the video again… it seems like your spotlight source is moving past the wall

So I figured out that I would need to use Future lighting, which I don’t want to. So I found a solution:


If there is a light far enough behind it will work

yes my next suggestion was to move the location of the spotlight, and move it closer to the handle of the flashlight.

Edit: you can also change it to surface light, which points in one direction rather than a radius of light

1 Like

You can also just set it a bit into the body, turn off shadows on the flashlight, set the angle to ~170, then it should be fine.

You should move the flashlight’s lightsource back so that even when ur facing the wall it will light it up. I personally dont like flashlights in shadowmap / voxel lighting exactly because of this reason. I would switch to future.