dungeon_crawler
view prototype/sdr/post.p.glsl @ 73:67d330038629
ok fixed the dissapearing particle system. Had forgotten to disable TEXTURE_3D after color grading pass
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 21 Oct 2012 02:11:23 +0300 |
parents | fc2b3d06d07c |
children | f379c00eb07f |
line source
1 uniform sampler2D fbtex;
2 uniform sampler3D paltex;
4 void main()
5 {
6 // lookup the render output color for this pixel
7 vec4 color = texture2D(fbtex, gl_TexCoord[0].st);
8 // use that color as an index into the palette
9 gl_FragColor = vec4(texture3D(paltex, color.xyz).xyz, color.a);
10 }