The GLSL API

Mike Bailey, Steve Cunningham · 2011

The vertex shader is short and uses our familiar conventions for variable names: out vec2 vST; void main( ) { vST = aTexCoord0.st; gl_Position = uModelViewProjectionMatrix * aVertex; } Throughout this chapter we will be looking at different image manipulation functions that we can build into fragment shaders.

Read the paper · More papers on PaperTik