PointLight + PBRMaterial shadows bug?

Hello,

Could someone please confirm if there is indeed a problem with Point lights, PBRMaterials and shadows? It seems to me that actually there is a problem with this specific combination.

Here is a PG:

On the above PG, you can swap Point and Directional lights plus Standard and PBR materials. When light2 is Point and the torus has PBRMaterial, the torus won’t receive shadows from light2.

I would like to know if that is a bug or a known limitation.

Thanks!

The light units are not the same in pbr and standard as they need to be physical values.

So you end up with https://playground.babylonjs.com/#IFYDRS#405 where the torus is not lit

You could crank the light up https://playground.babylonjs.com/#IFYDRS#406 but it will overburn standard

So the simplest is to enforce the same lights unit on all the mat which overburns everything: https://playground.babylonjs.com/#IFYDRS#407

And come back to a normal light value: https://playground.babylonjs.com/#IFYDRS#408

With all the lights in: https://playground.babylonjs.com/#IFYDRS#409

5 Likes

Awesome, thank you!