No effect when applying LIGHTMAP_SHADOWSONLY

Shadows only test | Babylon.js Playground (babylonjs.com)

I must be misunderstanding something. A flag like LIGHTMAP_SHADOWSONLY gives me the impression that the light that it’s applied to would cast only shadows and no light; diffuse, specular, or otherwise. However, as you can see in the example above, whether the light.lightmapMode line is there or not, all objects are lit. My expectation is that everything would be black.

This behavior is the same, whether it’s the latest version of BabylonJS, or 4.2.1. What am I missing?

You have a great example here:
Lightmap modes | Babylon.js Playground (babylonjs.com)

Doc:
https://doc.babylonjs.com/features/featuresDeepDive/lights/lights_introduction#lightmaps

2 Likes