mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
Prefer flat colour interpolation in shaders.
This commit is contained in:
parent
9bce228c81
commit
0e2b61e766
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
";
|
||||
|
||||
|
|
Loading…
Reference in a new issue