hnim Posted May 31, 2018 Share Posted May 31, 2018 Hello everyone, i am learning pixi js. How could i set color for each vertice of mesh object beside vertices, uvs and idices? Thanks for you help! Quote Link to comment Share on other sites More sharing options...
botmaster Posted May 31, 2018 Share Posted May 31, 2018 You'll need a custom shader for that I'm pretty sure. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 31, 2018 Share Posted May 31, 2018 This plugin has it: https://github.com/gameofbombs/pixi-heaven/ , just add file from "bin" folder named "pixi-heaven.js" to your project. https://github.com/gameofbombs/pixi-heaven#how-to-use-colored-meshes - that's how to use heaven meshes instead regular ones. Also its even easier for special meshes like Rope: https://gameofbombs.github.io/examples-heaven/#/mesh/rope-colored.js Quote Link to comment Share on other sites More sharing options...
hnim Posted June 1, 2018 Author Share Posted June 1, 2018 Thanks you, i will try it. Thanks you very much Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.