Opengl and Shaders
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
I can only confirm that you can use GLSL, but I don't know anything about implementation.
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.
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
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
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
Popular Topics
Advertisement