dungeon_crawler
diff prototype/sdr/deferred.p.glsl @ 18:5c41e6fcb300
- commandline arguments
- stereoscopic rendering
- FBO fixed
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 21 Aug 2012 03:17:48 +0300 |
parents | d98240a13793 |
children | 8a0ae6b4aa9b |
line diff
1.1 --- a/prototype/sdr/deferred.p.glsl Mon Aug 20 06:11:58 2012 +0300 1.2 +++ b/prototype/sdr/deferred.p.glsl Tue Aug 21 03:17:48 2012 +0300 1.3 @@ -1,4 +1,8 @@ 1.4 +uniform sampler2D mrt0; 1.5 +uniform vec2 tex_scale; 1.6 + 1.7 void main() 1.8 { 1.9 - gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0); 1.10 + vec4 texel0 = texture2D(mrt0, gl_TexCoord[0].st * tex_scale); 1.11 + gl_FragColor = texel0; 1.12 }