1 2 3 4 5 6 7 8 9 10 11 12 13
// Cyrille Henry 2008 #extension GL_ARB_texture_rectangle : enable uniform sampler2DRect texture_mass; uniform float init; void main (void) { vec2 coord = gl_TexCoord[0].st/2.; vec4 pos = texture2DRect(texture_mass, coord); gl_FragColor = pos; }