zhutq Posted January 12, 2017 Share Posted January 12, 2017 Hi, I want to draw triangle wireframe on shaded mesh and ensure it works with rendering groups. (Previous thread: http://www.html5gamedevs.com/topic/27539-how-to-draw-triangle-wireframe-on-shaded-mesh/) I insert some code to BABYLON.Mesh.prototype.render to achieve the effect. Playground: http://www.babylonjs-playground.com/#A1H3J What do you think about this approach? NasimiAsl, iiceman and jerome 3 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 12, 2017 Share Posted January 12, 2017 It is smart But for maintenance reason I would just suggest cloning your sphere and rendering your object twice (clone will share all buffers so it will be comparable to what you have now) Hartha 1 Quote Link to comment Share on other sites More sharing options...
zhutq Posted January 13, 2017 Author Share Posted January 13, 2017 20 hours ago, Deltakosh said: It is smart But for maintenance reason I would just suggest cloning your sphere and rendering your object twice (clone will share all buffers so it will be comparable to what you have now) Oh, that's great! I didn't know they'll share buffers. Thank you. GameMonetize 1 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.