PDA

View Full Version : GLSL in OpenGL MFC program



like_gobeawan
04-26-2008, 01:03 AM
hi all,

i'm beginner in GLSL. looking thru various tutorial for writing the vertex shader & fragment shader, there's lack of documentation for the setup, especially for MFC; i can't figure out way to attach those shader into my existing MFC Opengl program. any pointer to how to do this?
thanks a lot!

ZbuffeR
04-26-2008, 01:22 AM
The tutorials on http://www.lighthouse3d.com were pretty neat, try with the google cache version, as currently their site seem down.

You have to know how to use GL extensions, either by using a lib such as GLEW, or manually.

The Nvidia and ATI SDKs have lots of code examples for it.