zhutq Posted January 6, 2017 Share Posted January 6, 2017 Hi, I've successfully created a custom mesh: var vertexData = new BABYLON.VertexData(); // ... fill vertexData ... var customMesh = new BABYLON.Mesh("custom", scene); vertexData.applyToMesh(customMesh); I want to change the color of some triangles in customMesh after it is created. Which triangles to change is not known until run-time. What is the best practices to achieve this? Can I update only the affected part of the mesh data (like using glBufferSubData/glTexSubImage in GL)? Thank you very much! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.