summaryrefslogtreecommitdiffstats
path: root/cwd/shaders/face.fs
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-09-17 17:50:36 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:31 +0100
commit94006e599c8d591096b768d1cd0c8b75eb763c45 (patch)
treee1464cabe071e62015a822e1e3f36af524bbc16c /cwd/shaders/face.fs
parent2017-09-16 (diff)
downloadAltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.gz
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.bz2
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.lz
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.xz
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.tar.zst
AltCraft-94006e599c8d591096b768d1cd0c8b75eb763c45.zip
Diffstat (limited to '')
-rw-r--r--cwd/shaders/face.fs9
1 files changed, 5 insertions, 4 deletions
diff --git a/cwd/shaders/face.fs b/cwd/shaders/face.fs
index aa45997..ae2eb56 100644
--- a/cwd/shaders/face.fs
+++ b/cwd/shaders/face.fs
@@ -2,9 +2,10 @@
in VS_OUT {
vec2 UvPosition;
- vec4 Texture;
- vec3 Color;
- vec2 Light;
+ flat vec4 Texture;
+ flat vec3 Color;
+ flat vec2 Light;
+ flat int Face;
} fs_in;
uniform sampler2D textureAtlas;
@@ -47,4 +48,4 @@ void main() {
gl_FragColor = vec4(hsv2rgb(hsvColor),1);
//float faceLight = clamp((fs_in.Light.x + fs_in.Light.y) / 15.0,0.2,1.0);
//gl_FragColor = vec4(gl_FragColor.rgb * faceLight,gl_FragColor.a);
-} \ No newline at end of file
+}