In my project there a lot of objects, but for a few objects or part of them shadow is reversed under light, Like this table it’s surface (not legs) is dark when get in front of light and get lighter when get behind to the light.
This is screenshot when surface is under light and it is dark:
This is screenshot when surface is behind the light and it is light:
Could you reproduce your setup in the playground ??? it is pretty strange and would normally mean the light is having the wrong direction for some reasons.
No, not the shadow on the ground. The shadow on surface of table. It is still black on your PG. In your PG when light is under the table, underneath of table’s surface accept the light and get bright but the top of surface still black in both PG
1 = Under table is lighted when light is under table:
2 = Top of table NOT lighted when light is top of the table:
Thanks @sebavan for caring about issue. Thanks god, I recently upload my website. Now I can show you in one .gltf object has two direction of lightening and shadowing. My Website
In right panel add sofa in the picture, sits getting opposite shadows like this screen shots:
Big note: In one of these situation, In blender I rotate the part that getting reverse shadow , then try it in scene and problem resolved
You can access scene in console via: homePage.scene
Lights: homePage.light homePage.lightRoof homePage.hemisLights
For example you can write this in console: homePage.light.falloffType = BABYLON.Light.FALLOFF_STANDARD;
Shadow: homePage.shadowGenerator
I will add full code in PG very soon, but I am very busy right now to seperate it from other parts.
The sofa .gltf file: sofa120.zip (1.6 MB)