Sign in to follow this  

Draw triangle wireframe over shaded mesh by modifying BABYLON.Mesh.prototype.render

Recommended Posts


I want to draw triangle wireframe on shaded mesh and ensure it works with rendering groups. (Previous thread:

I insert some code to BABYLON.Mesh.prototype.render to achieve the effect.


What do you think about this approach?

Share this post

Link to post
Share on other sites
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.


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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.