16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-09-01 12:49:18 +02:00

works for rendering without texture (not done yet)

This commit is contained in:
milek7
2017-08-03 11:49:03 +02:00
parent 27920a9595
commit 26e76abfbc
7 changed files with 173 additions and 3 deletions

View File

@@ -135,5 +135,7 @@ void main()
}
vec4 tex_color = texture(tex, f_coord);
color = vec4(apply_fog(result * tex_color.xyz), tex_color.w);
vec3 c = apply_fog(result * tex_color.xyz);
//color = vec4(c / (c + vec3(1.0)), tex_color.w);
color = vec4(c, tex_color.w);
}