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:
ZT_Wall01_01
If I remove the lightingmap, the instanced mesh will be visible all time.
this works if you start with the light disabled https://playground.babylonjs.com/#8LFTCH#2456
It looks like the shader recompilation might break in this case
Thx for ur reply
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.
PCF
PCSS
GL_INVALID_OPERATION: Mismatch between texture format and sampler type (signed/unsigned/float/shadow).