dungeon_crawler
view prototype/sdr/mrt.p.glsl @ 19:8a0ae6b4aa9b
trying to make MRT work
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 21 Aug 2012 04:29:49 +0300 |
parents | d98240a13793 |
children | 48cfd351a9be |
line source
1 uniform sampler2D tex_dif;
3 void main()
4 {
5 vec4 texel = texture2D(tex_dif, gl_TexCoord[0].st);
6 gl_FragData[0] = texel * vec4(1.0, 0.0, 0.0, 1.0);
7 gl_FragData[1] = texel * vec4(0.0, 1.0, 0.0, 1.0);
8 gl_FragData[2] = texel * vec4(0.0, 0.0, 1.0, 1.0);
9 gl_FragData[3] = texel * vec4(1.0, 0.0, 0.0, 1.0);
10 }