Getting ready

Start with the shaders and FBO presented in the previous Rendering shadows with shadow maps recipe. We'll just make a few minor changes to the code presented there.

Get OpenGL 4 Shading Language Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.