Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments