Post-processing tests

Former-commit-id: 133d737a58d9de4fa0b41268cc2f88d2427d3637
This commit is contained in:
Joshua Barretto 2019-05-09 13:52:11 +01:00
parent ac78d322d6
commit 1e1b005cbb

View File

@ -156,7 +156,16 @@ vec4 fxaa_apply(sampler2D tex, vec2 fragCoord, vec2 resolution) {
void main() {
vec2 uv = (f_pos + 1.0) * 0.5;
/*
float px_size = 8.0;
vec2 px_count = screen_res.xy / px_size;
vec2 uv2 = floor(uv * px_count) / px_count;
*/
vec4 color = fxaa_apply(src_color, uv * screen_res.xy, screen_res.xy);
tgt_color = 1.0 - 1.0 / (color + 1.0);
//tgt_color = ceil(tgt_color * 10.0) / 10.0;
}