Category Archives: OpenGL

OpenGL Toon Shader Example

Purpose of the Sample:

Demonstrates how to make a toon shader using a stencil buffer for the silhouette.

CGame.h

CGame.cpp

vertexPass0.glsl

fragmentPass0.glsl

vertexPass1.glsl

fragmentPass1.glsl

fragmentPass2.glsl

Download Sample App