Point light self shadows, light reflects through walls

My doubts
1.In my game, the point lights put outside a building create shadow of itself in the wall. Is it normal?
2. Point light placed inside the building creates reflection in the ground outside, through walls. Why is it?

Code link:

I’m not clear on what you’re describing here. Could you elaborate, please–or maybe post some screenshots?

If you have shadows enabled for the lights in question, then I imagine that the shader(s) being used simply don’t account for the shadow-map when calculating the highlight produced by the light. (Why that might be I don’t know, offhand.)

(If you don’t have shadows enabled, then that may be the reason: without shadows, the walls won’t “stop” lights at all, I daresay.)


there is a dot at center. may be due to simplepbr?

ok. shadows not enabled for that light. but i guess it may also due to shaders in simplepbr.

Oh, I see!

Hum, that is odd!

I’d say that it doesn’t look like a shadow to me, but rather a glitch in the lighting calculation. Is the light perhaps very close to the wall? Maybe simplepbr experiences an overflow, or a division-by-zero, when a light is placed too close to a surface–at a guess!

Oh, if shadows aren’t enabled then of course the light will show through walls. I think that you’ll find that pretty much all renderers–simplepbr or otherwise–will have this effect.

i upgraded to simplepbr 0.13.1, now its fixed.

ok. when i enable shadows, i errors “PointLight shadow casters are not supported”. i need to look for other solutions. thank you.

1 Like

It’s my pleasure! :slight_smile:

If you haven’t already, you could try “complexpbr”. I don’t know whether it handles shadows as you hope, but it seems worth checking!

See the thread below: