O'Reilly logo

WebGL Game Development by Sumeet Arora

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Applying filters using framebuffers

Framebuffers are a very powerful extension to the WebGL API. A whole separate book can be written to explore its power, but we would like to confine ourselves to exploring it in a use case that is mostly used in game engines: post processing filters. So, let's understand what they are. Let's say that you want to render your game scene and give a user the perception that your game is being viewed using night vision goggles. Now, the night vision goggles give a perception of the green color all over the rendered scene. Let's say you want to give the perception of day and night in your game without creating static texture assets. There are many filter effects such as blur, glow, snow, and edge detection that we ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required