Sign in to follow this  
redneon

OpenGL Getting shaders into my head

Recommended Posts

I've read through most of the OpenGL Shading Language and The Cg Tutorial as I'm trying to learn shaders. The problem I'm having is that neither of these books tell you how to implement a shader in OpenGL. They just give you the code for vertex and fragment applications. Admittedly, the OpenGL Shading Language does give you an "install" function for the shaders but I have no idea how to use it. I also looked at RenderMonkey, which I really like. It allows me to create shaders really quickly but, once again, the only code you can get out of it is for the vertex and fragment shaders. Am I missing something here? Is it really that simple to implement them that I should be able to figure it out for myself? Can anyone point me in the direction of a decent GLSL tutorial which will show me how to implement a shader in OpenGL? Or, are there any libraries avaiable which will take a RenderMonkey shader and convert it into OpenGL code?

Share this post


Link to post
Share on other sites
The shaders created in RenderMonkey are ready to use in normal apps, look at www.lighthouse3d.com for GLSL tutorial. The site explains how to inject them in your app.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this