Opengl and Shaders

Started by
6 comments, last by GameDev.net 19 years, 1 month ago
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
Advertisement
I can only confirm that you can use GLSL, but I don't know anything about implementation.
I know that you can use glsl with Opengl 2 but thats not open to the public.
Hepy
Edit what about CG?
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.
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
hey, thanks for the link. are these capabilites open to opengl 1.4
hepy
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.

This topic is closed to new replies.

Advertisement