Render a Wireframe On a Solid Mesh // OpenGL Tutorial #49

Опубликовано: 13 Февраль 2026
на канале: OGLDEV
6,047
188

In this video we use the Geometry Shader to render a wireframe on top of a shaded mesh in a single pass.

🔥 See the list of the books that I'm using as background information for my tutorials: https://ogldev.org/books.html. I highly recommend them for learning more about OpenGL and Vulkan. These are affiliate links so if you use them to buy any of the books the price is the same for you and I will get a small commission (thank-you!).

📚 Timecodes 📚
0:00 Intro
1:38 Rasterization recap
1:56 Algorithm overview
3:04 Distance from a point to a line
4:55 Code review
9:50 Outro

🔥Geometry Shader Intro ►    • Billboarding With The Geometry Shader // O...  
🔥Learn more about the end of the pipeline ►    • Clipping And Viewport Mapping  // OpenGL T...  

Solid Wireframe paper by NVIDIA ►https://developer.download.nvidia.com...
OpenGL 4.6 specification► https://www.khronos.org/registry/Open...

🔥Make sure to watch all the previous tutorials in the "OpenGL For Beginners" playlist ►   • All OpenGL Tutorials  
🔥Please visit https://ogldev.org to see more of my tutorials on modern OpenGL.
🔥Link to source ► https://github.com/emeiri/ogldev/blob...
If you want to get the same version of the code that was used in the video checkout the tag 'TUT_49_WIREFRAME_ON_MESH'

🙏Credits:
🔹 Models:
"Happy Buddha", "Erato" and "Chinese Dragon" from https://casual-effects.com/data/
"Coast Land Rocks", "Ship Pannace" from https://polyhaven.com
"Ogre Mesh" by Keenan Crane
"Vanguard" from https://mixamo.com
🔹 Z fight image - https://en.wikipedia.org/wiki/Z-fighting
🔹 Image from https://scratchapixel.com
🔹 Get Free by Hotham   / hothammusic  
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://bit.ly/49u0g25
Music promoted by Audio Library https://bit.ly/473lz9n
🔹 Feel So Good by LiQWYD   / liqwyd  
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://bit.ly/461VrdH
Music promoted by Audio Library https://bit.ly/3QRkR9q

Feel free to comment below.

🔗Contact
Email: [email protected]
Instagram: @ogldev1
Github: https://github.com/emeiri/ogldev.git
Twitter: @ogldev
One time donations (Paypal): https://ogldev.org/donate.html
Patreon:   / ogldev  

Enjoy,

Etay Meiri

#opengl #ogldev #opengtutorials