Skip to content
Snippets Groups Projects
Commit 4fb57362 authored by dg's avatar dg
Browse files

Fix main fbo shader

git-svn-id: http://svn.net-core.org/repos/t-engine4@1453 51575b47-30f0-44d4-a5cc-537603b46e54
parent e1407d69
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ void main(void)
float coord = gl_TexCoord[0].x + gl_TexCoord[0].y * texSize[0];
float noisy1 = texture2D(noisevol,vec2(coord,fTime0_X)).r;
float noisy2 = texture2D(noisevol,vec2(coord/5.0,fTime0_X/1.5)).r;
float noisy3 = texture2D(noisevol,vec2(coord/7.0,fTime0_X/2)).r;
float noisy3 = texture2D(noisevol,vec2(coord/7.0,fTime0_X/2.0)).r;
float noisy = (noisy1+noisy2+noisy3)/3.0;
// Center Pixel
......@@ -68,7 +68,7 @@ void main(void)
}
}
}
sample /= float((blursize*1.5) * (blursize*0.5));
sample /= float((motionblur*1.5) * (float(motionblur*0.5));
// gl_FragColor = sample * (0.3 + noise * 0.7);
gl_FragColor = sample;
}
......
......@@ -20,7 +20,7 @@ void main(void)
float coord = gl_TexCoord[0].x + gl_TexCoord[0].y * texSize[0];
float noisy1 = texture2D(noisevol,vec2(coord,fTime0_X)).r;
float noisy2 = texture2D(noisevol,vec2(coord/5.0,fTime0_X/1.5)).r;
float noisy3 = texture2D(noisevol,vec2(coord/7.0,fTime0_X/2)).r;
float noisy3 = texture2D(noisevol,vec2(coord/7.0,fTime0_X/2.0)).r;
float noisy = (noisy1+noisy2+noisy3)/3.0;
// Center Pixel
......@@ -68,7 +68,7 @@ void main(void)
}
}
}
sample /= float((blursize*1.5) * (blursize*0.5));
sample /= float((motionblur*1.5) * (motionblur*0.5));
// gl_FragColor = sample * (0.3 + noise * 0.7);
gl_FragColor = sample;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment