Add vignette to post shader

This commit is contained in:
Peder Bergebakken Sundt 2019-04-01 13:07:39 +02:00
parent c695d96158
commit e7a0d74312
1 changed files with 1 additions and 1 deletions

View File

@ -26,5 +26,5 @@ void main() {
color += texture(framebuffer, p);
}
color /= pow(2*radius+1, 2);
color_out = vec4(color, 1.0);
color_out = vec4(color * (1-pow(length((UV-0.5)*1.2), 3)), 1.0); // vignette
}