Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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
1  
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: github.com/amplify91/RAW. 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
1  
Glad I might help :) just keep looking at tutorials till you get it! Welcome to gamedev.SE! –  Amplify91 Mar 30 '12 at 7:36
add comment

1 Answer

up vote 4 down vote accepted

The first chapter in this book covers simple rendering using GLSL shaders: http://www.arcsynthesis.org/gltut/

(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
add comment

Your Answer

 
discard

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.