Sign in to follow this  

Opengl and Shaders

This topic is 4664 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, i'm new to all this and i have 1 simple question. Can you use shaders with the current version of opengl. And if so how would i go about applying to my 3d objects. Thanks, Hepy

Share this post


Link to post
Share on other sites
If you search the forum, or just browse back a few pages, you'll see a lot of shader-related topics that point out that GLSL is already chosen over CG.

If you go to link, you'll see that it's already implementable. The tutorial guides and gives more info then I can type here.

Share this post


Link to post
Share on other sites
There are three ways to use shaders with OpenGL:

1. assembly shaders - extensions GL_ARB_vertex_program and GL_ARB_fragment_program
2. GLSL shaders - extensions GL_ARB_vertex_shader and GL_ARB_fragment_shader or OpenGL 2.0
3. CG shaders - Download CG SDK from Nvidia's site

GLSL might be the best choice

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Currently you have access to GLSL through ARB_vertex_shader and ARB_fragment_shader. It does not matter what version of OpenGL you have, as they are extensions! OpenGL2.0, however, will be including GLSL in the core.

Share this post


Link to post
Share on other sites

This topic is 4664 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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