OpenGL Tutorial 15 - Stencil Buffer & Outlining

In this tutorial I'll show you how the Stencil Buffer works in OpenGL, and how to use it in order to outline a model. Source Code & Models https://github.com/VictorGordan/openg... OpenGL Documentation https://www.khronos.org/registry/Open... Discord Server   / discord   Patreon   / victorgordan   Timestamps 0:00 Introduction & Properties 0:36 glStencilMask() 1:36 Two Other Functions 1:59 glStencilFunc() 2:35 glStencilOp() 3:01 Practical Uses 3:11 Theory of Outlining 4:03 Setting up Stencil Buffer 4:35 Applying Outlining Theory 5:25 Outlining Shaders and Shader Program 5:50 Finish Applying Outlining Theory 6:14 Showcase First Method 6:40 Second Method 6:58 Showcase Second Method 7:12 Second Method Fault 7:22 Third Method 7:58 Showcase Third Method & Ending References https://learnopengl.com/Advanced-Open... https://sketchfab.com/3d-models/neat-... #opengl #opengltutorial #computergraphics #cpp #visualstudio