summaryrefslogtreecommitdiffstats
path: root/src/extras/shaders/neoVehicle.frag
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-11-18 10:27:55 +0100
committeraap <aap@papnet.eu>2020-11-18 10:27:55 +0100
commit82b0103c6789041b721b1de30746ce21a556ab4d (patch)
tree2312509d815997225ba4ad09b6f574918a8c06d2 /src/extras/shaders/neoVehicle.frag
parentMerge pull request #820 from withmorten/mission-switcher (diff)
downloadre3-82b0103c6789041b721b1de30746ce21a556ab4d.tar
re3-82b0103c6789041b721b1de30746ce21a556ab4d.tar.gz
re3-82b0103c6789041b721b1de30746ce21a556ab4d.tar.bz2
re3-82b0103c6789041b721b1de30746ce21a556ab4d.tar.lz
re3-82b0103c6789041b721b1de30746ce21a556ab4d.tar.xz
re3-82b0103c6789041b721b1de30746ce21a556ab4d.tar.zst
re3-82b0103c6789041b721b1de30746ce21a556ab4d.zip
Diffstat (limited to 'src/extras/shaders/neoVehicle.frag')
-rw-r--r--src/extras/shaders/neoVehicle.frag15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/extras/shaders/neoVehicle.frag b/src/extras/shaders/neoVehicle.frag
index 96d4a632..2ac24f70 100644
--- a/src/extras/shaders/neoVehicle.frag
+++ b/src/extras/shaders/neoVehicle.frag
@@ -1,13 +1,11 @@
uniform sampler2D tex0;
uniform sampler2D tex1;
-in vec4 v_color;
-in vec4 v_reflcolor;
-in vec2 v_tex0;
-in vec2 v_tex1;
-in float v_fog;
-
-out vec4 color;
+FSIN vec4 v_color;
+FSIN vec4 v_reflcolor;
+FSIN vec2 v_tex0;
+FSIN vec2 v_tex1;
+FSIN float v_fog;
void
main(void)
@@ -20,9 +18,12 @@ main(void)
vec3 pass2 = v_reflcolor.rgb * v_fog;
+ vec4 color;
color.rgb = pass1.rgb*pass1.a + pass2;
color.a = pass1.a;
// color.rgb = mix(u_fogColor.rgb, color.rgb, v_fog);
DoAlphaTest(color.a);
+
+ FRAGCOLOR(color);
}