Tutorial:How To Use OpenGL ES 2.0 Shaders With Cocos2D v2 To Make Cool Effects

One of the key upgrades in Cocos2D v2 is going from OpenGL ES 1.1 to OpenGL ES 2.0.  This means that basically all rendering is defined using shaders.

One of the things that is really cool about this is that you can take advantage of the OpenGL shader language GLSL to create some custom shaders to create some cool effects that otherwise would not be possible.

Krzysztof Zablocki who created the recently mentioned category that allows easy integration of UIGestureRecognizer’s in Cocos2D apps has created a very interesting tutorial that shows you how to create your own custom shaders with Cocos2D v2.0, and provides some great examples.

Here’s a video demonstrating the tutorial in action:

You can find the complete tutorial and sample project here.

This tutorial was added to the Cocos2D tutorial page.

If you’re interested in learning how to program shaders with OpenGL ES 2.0 I highly recommend checking out this interesting app for learning OpenGL ES 2.0 which lets you program test, and export shaders with your iPad (not specifically made for Cocos2D, but still cool.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Leave a Reply

Your email address will not be published. Required fields are marked *