Snippet code:
Let the model itself PBRMaterial
Replace with a custom PBR dynamic texture:
PBRStandardDynamicTextureMaterial
is not a class from Babylon, but if it implements a proper material, your code should work.
What is the problem with the code? Are you able to setup a repro in the Playground?
However, note that .glb files don’t support custom materials, only standard PBR materials.