SPS multi materials

Mi code works fine in the PG, the exact same code does not work in mi project.
setMultiMaterial() and computeSubMeshes() gives me a “is not a function” error.

Do i need to import extra files to make this work?

https://playground.babylonjs.com/#9Q3LP4#6

Are you using the preview cdn ???

1 Like

No, downloaded Babylon scripts.

Mi project imports:
babylon.js
babylon.gui.min.js
babylon.inspector.bundle.js
babylonjs.loaders.min.js
babylonjs.materials.min.js
babylonjs.postProcess.min.js
babylonjs.proceduralTextures.min.js
babylonjs.serializers.min.js

Are you using the latests from Babylon.js/dist/preview release at master · BabylonJS/Babylon.js · GitHub ?

1 Like

No, ill try that.

Than you very much! :smiley: