SketchpunkLabs | Fun with WebGL 2.0 : 033 : Barycentric Coordinates and Wireframes @SketchpunkLabs | Uploaded 7 years ago | Updated 2 days ago
Today we explore how we can create a wireframe effect, this will require use to define every triangle face in the mesh then setup barycentric coords for each vertice. With all that setup, we can create a shader that uses the information to draw the edges of the triangle to create the wireframe effect.
======================================================
GitHub :: https://github.com/sketchpunk/FunWithWebGL2
Patreon :: https://www.patreon.com/sketchpunk
Tumblr :: http://sketchpunklabs.tumblr.com/
Today we explore how we can create a wireframe effect, this will require use to define every triangle face in the mesh then setup barycentric coords for each vertice. With all that setup, we can create a shader that uses the information to draw the edges of the triangle to create the wireframe effect.
======================================================
GitHub :: https://github.com/sketchpunk/FunWithWebGL2
Patreon :: https://www.patreon.com/sketchpunk
Tumblr :: http://sketchpunklabs.tumblr.com/