serializing object with shadermaterial

Recommended Posts

Shader Material does have a serialize and parse functions, which means - it does serialize correctly. What you are (probably) missing, is the actually definition of the shader, which is located in BABYLON.Effect.ShadersStore["customVertexShader"] . You will have to add it yourself and then parse the material. You will also need to serialize the entire scene, otherwise you will not get the material itself, just the mesh referencing a non-existing material:


I hope this helps!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.