hello everyone,I found that the lighting mapping information in Unity is on the mesh, while BABYLON is on the material. Therefore, using the same material on multiple different meshes may pose a problem. In Unity, different meshes generate multiple lighting maps but still share the same material. However, in BABYLONJS, I must clone multiple identical materials for these meshes and set different lighting map for each material. My question is whether these grids can still share the same material when using different lighting textures. My English is not very good, please point out any issues.
Yes they can share the same material and you can use the mesh.onBeforeRenderObservable to hook a code that will switch the light texture.
Maybe you can create a small Playground with your use case and we can hack it together
Babylon.js Playground Thank you for your suggestion. I have created a PG to explain my problem
Here we are:
1 Like
This method perfectly solved my problem,god bless you!
2 Likes

