Second attempt to fix the motion blur shader

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9352 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
funto66 2011-07-25 21:20:17 +00:00
parent ac836ee960
commit 242549efae

View File

@ -49,7 +49,7 @@ void main()
vec2 blur_texcoords = texcoords + inc_vec;
for(int i=1 ; i < NB_SAMPLES ; i++)
{
color += texture2D(color_buffer, blur_texcoords);
color += texture2D(color_buffer, blur_texcoords).rgb;
blur_texcoords += inc_vec;
}
color /= vec3(NB_SAMPLES);