Hi,
I am trying to write my own ShaderMaterial. The first time it succeeds. However, when I try to modify the shader code at runtime and overwrite the material of my mesh, it does not change anything! That’s a problem because I want to be able to update shader code at runtime.
In this playground, you see what I mean: https://www.babylonjs-playground.com/#59M6SR#1
Click on the textured box, and the texture on the box should now be sampled by a totally different UV factor (just a demo, I really need to change the shader for a different reason!).
Can you help me make the shader update?
Cheers
Matthias