License Lesser General Public License, version 2.1
Lines 133
Average
n/a
Rated
0
Times
5
4
3
2
1
0
Keywords
GLSL (2) OpenGL (15) PyGame (1) PyOpenGL (9)
Included in these Libraries
Permissions
Owner: Stou S.
Viewable by Everyone
Editable by All Siafoo Users
Hide
Need a quick chart or graph for your blog? Try our reStructured Text renderer. Join Siafoo Now or Learn More

Using GLSL with PyOpenGL Atom Feed

In Brief It seems that some of the GLSL features are not implemented in older versions of PyOpenGL making it difficult to use shaders in PyOpenGL. This excellent piece of code from the pygame wiki defines the required features for shader development.... more

It seems that some of the GLSL features are not implemented in older versions of PyOpenGL making it difficult to use shaders in PyOpenGL. This excellent piece of code from the pygame wiki defines the required features for shader development.

Warning

You shouldn't need or use this code if you have a recent version of PyOpenGL (~3.0)

The main function draws the Utah Teapot with a rainbow sort of color, like this:

http://www.siafoo.net/image/29