OpenGL:GLSL Shaders Repository
From GPWiki
| |
This article is a stub. You can help out by expanding it. |
This page contains a list of free shaders for GLSL. You can add your in the relative section.
Contents |
Vertex Shaders
Basic
Blue Waving
This shader modify the vertex's Y coord and multiply for the sine of the vertex's X coord. It also color the vertex of blue.
void main() { vec4 v = vec4(gl_Vertex); v.y = sin(0.5 * v.x); gl_Position = gl_ModelViewProjectionMatrix * v; gl_FrontColor.rgb = vec3(0.0, 0.0, 1.0); }