Toggle shadow light disabled will make InstancedMesh invisible

Hi, babylonjs forum

Here is the PG:

If chrome browser cannot load model file, you can try incognito window

I just set the lightingmap of the material ZT_Wall01_01 like this and toggle light will make instanced mesh invisible:
image

If I remove the lightingmap, the instanced mesh will be visible all time.

this works if you start with the light disabled :expressionless: https://playground.babylonjs.com/#8LFTCH#2456

It looks like the shader recompilation might break in this case :frowning:

Thx for ur reply :laughing:

And I also found the shadow mode of PCF or PCSS will cause the error GL_INVALID_OPERATION: Mismatch between texture format and sampler type (signed/unsigned/float/shadow). The other mode of shadow works fine.

1 Like