From 51b90e144f3c6d802a225bee504c0de18c8316e9 Mon Sep 17 00:00:00 2001 From: Mathias Paulin Date: Wed, 22 Mar 2023 12:02:06 +0100 Subject: [PATCH] [dataflow-rendering-shaders] add missing ouput in no-light vertex shader --- src/Dataflow/Rendering/Shaders/shader_nolight.vert.glsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Dataflow/Rendering/Shaders/shader_nolight.vert.glsl b/src/Dataflow/Rendering/Shaders/shader_nolight.vert.glsl index fde2a9a03ac..a7a86f018e0 100644 --- a/src/Dataflow/Rendering/Shaders/shader_nolight.vert.glsl +++ b/src/Dataflow/Rendering/Shaders/shader_nolight.vert.glsl @@ -14,7 +14,7 @@ layout (location = 1) out vec3 out_normal; layout (location = 2) out vec3 out_texcoord; layout (location = 3) out vec3 out_vertexcolor; layout (location = 4) out vec3 out_tangent; - +layout (location = 5) out vec3 out_viewVector; void main() { @@ -34,4 +34,5 @@ void main() out_normal = normal; out_tangent = tangent; out_vertexcolor = in_color.rgb; + out_viewVector = normalize(eye - pos.xyz); }