Ridge Batty Posted July 23, 2014 Share Posted July 23, 2014 hello there, since this is my first post: kudos to deltakosh et al for this great work. my question is, how can i add custom attributes (buffers) to my shaders? it seems like normals, positions and uv's just magically surface when needed - yes, they're quite cleverly integrated and hidden from the developer. now i know i can cheat the system and use for example normals to send additional data to my vertex shader... but then i can't use the normal data for their original purpose anymore =p i don't want to read and understand the source code... because that is not what you're supposed to do when using a framework. if i wanted to do that, i would write my own low level framework. and -- for the life of me i can't find the info from the documentation. can anyone at least point me to the right direction? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 23, 2014 Share Posted July 23, 2014 Hello and thank you, this article could be somehow interesting:https://github.com/BabylonJS/Babylon.js/wiki/How-to-merge-meshes The main function you need is:newMesh.setVerticesData("mykind", data, false); Quote Link to comment Share on other sites More sharing options...
Ridge Batty Posted August 6, 2014 Author Share Posted August 6, 2014 Very good. But I still must note that it's a bit unclear by looking at the documentation only. 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.