![]() |
![]() |
OpenGL Shading Language Tutorials |
Tutorial 6 : TexturingIn this Tutorial we want to use the same texturing as the original OpenGL program, i.e. if you remove shaders it should look same way.
I load 2 textures and use glBindTexture(..) before drawing a teapot.
Vertex Shader Source
Fragment Shader Source
Author: Martin Christen, christen@clockworkcoders.com (source code is included in Tutorial Version 0.2 and higher)
|
|
© 2003 by Martin Christen. All Rights Reserved. |