summaryrefslogtreecommitdiffstats
path: root/src/extras/shaders/neoVehicle.vert
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.vert
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.vert')
-rw-r--r--src/extras/shaders/neoVehicle.vert17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/extras/shaders/neoVehicle.vert b/src/extras/shaders/neoVehicle.vert
index f2f54d6d..f0224ddb 100644
--- a/src/extras/shaders/neoVehicle.vert
+++ b/src/extras/shaders/neoVehicle.vert
@@ -8,16 +8,13 @@ uniform vec4 u_specColor[5];
#define shininess (u_reflProps.z)
#define specularity (u_reflProps.w)
-layout(location = 0) in vec3 in_pos;
-layout(location = 1) in vec3 in_normal;
-layout(location = 2) in vec4 in_color;
-layout(location = 3) in vec2 in_tex0;
-
-out vec4 v_color;
-out vec4 v_reflcolor;
-out vec2 v_tex0;
-out vec2 v_tex1;
-out float v_fog;
+VSIN(ATTRIB_POS) vec3 in_pos;
+
+VSOUT vec4 v_color;
+VSOUT vec4 v_reflcolor;
+VSOUT vec2 v_tex0;
+VSOUT vec2 v_tex1;
+VSOUT float v_fog;
vec3 DoDirLightSpec(vec3 Ldir, vec3 Lcol, vec3 N, vec3 V, float power)
{