Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would really love to add shader support in my game , although i can't seem to find a SIMPLE example on how to setup opengl for using shaders.

So i would like to ask : Does anyone knows if there are any SIMPLE examples for beginners ? (ie Rendering a simple 2d quad or something like that)

share|improve this question
Sorry, but using shaders for the first time isn't "simple". It took me a while to get the hang of it and I still consider my use novice. My implementation is relatively simple if you'd like to browse my source: The GLSL shaders are in res/raw and you should also look at the following classes: Shader, SpriteBatch, and GameRenderer. Good luck! – Amplify91 Mar 30 '12 at 6:05
Thank you very much.I will try to have a look :D – user1010005 Mar 30 '12 at 7:23
Glad I might help :) just keep looking at tutorials till you get it! Welcome to gamedev.SE! – Amplify91 Mar 30 '12 at 7:36
up vote 4 down vote accepted

The first chapter in this book covers simple rendering using GLSL shaders:

(the rest of the content is very useful too)

share|improve this answer
That's indeed very useful.Thanks D: – user1010005 Mar 30 '12 at 18:12
Thats indeed very 404, nice to have some light summarization here... – Jan 'splite' K. May 27 '15 at 19:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.