Prefer flat colour interpolation in shaders.

This commit is contained in:
UnknownShadow200 2015-06-20 11:33:52 +10:00
parent 9bce228c81
commit 0e2b61e766
2 changed files with 6 additions and 6 deletions

View file

@ -121,7 +121,7 @@ void main() {
FragmentSource = @"
#version 130
in vec4 out_colour;
flat in vec4 out_colour;
in vec2 out_texcoords;
out vec4 final_colour;
uniform sampler2D texImage;
@ -188,7 +188,7 @@ void main() {
FragmentSource = @"
#version 130
in vec2 out_texcoords;
in vec4 out_colour;
flat in vec4 out_colour;
out vec4 final_colour;
uniform sampler2D texImage;
--IMPORT fog_uniforms
@ -355,7 +355,7 @@ void main() {
FragmentSource = @"
#version 130
in vec2 out_texcoords;
in vec4 out_colour;
flat in vec4 out_colour;
out vec4 final_colour;
uniform sampler2D texImage;
--IMPORT fog_uniforms
@ -494,7 +494,7 @@ void main() {
#version 130
in vec3 in_position;
in vec4 in_colour;
out vec4 out_colour;
flat out vec4 out_colour;
uniform mat4 MVP;
void main() {
@ -505,7 +505,7 @@ void main() {
FragmentSource = @"
#version 130
in vec2 out_texcoords;
in vec4 out_colour;
flat in vec4 out_colour;
out vec4 final_colour;
--IMPORT fog_uniforms

View file

@ -32,7 +32,7 @@ uniform float fogMode;
in vec3 in_position;
in vec4 in_colour;
in vec2 in_texcoords;
out vec4 out_colour;
flat out vec4 out_colour;
out vec2 out_texcoords;
";