PG: https://playground.babylonjs.com/#4YVBTN#6.
The plugin just rewrite the albedo shader part to use the customAlbedoTexture as the actual albedo texture. The above mesh is using the plugin and even if I set alpha to 1 in the shader, it is alpha tested by the texture1. But as you can see the above mesh don’t use the texture1.
I went through the code, it seems engine._boundTexturesCache should be reset before the above mesh render? Now the cache is reused and the texture1 is set as the albedoTexture of material2.
If this is expected(as it is really hack to enable the ALBEDO define without an albedoTexture), why the above mesh is alpha tested even if I set alpha to 1 in the shader?