From 57a455d6cb19fe66043a8f742a7261d6a54ea7a7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 19 Jan 2020 13:59:45 +0100 Subject: [PATCH] - swapped order of matrix application. Model rotation must come before view rotation, this just never showed up because EDuke32 doesn't have both non-identity at the same time. --- wadsrc/static/engine/shaders/glsl/polymost.vp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wadsrc/static/engine/shaders/glsl/polymost.vp b/wadsrc/static/engine/shaders/glsl/polymost.vp index b8b0b8f17..3784f3db0 100644 --- a/wadsrc/static/engine/shaders/glsl/polymost.vp +++ b/wadsrc/static/engine/shaders/glsl/polymost.vp @@ -19,13 +19,11 @@ in vec4 i_texCoord; in vec4 i_color; -const float c_zero = 0.0; -const float c_one = 1.0; void main() { - vec4 vertex = u_rotMatrix * i_vertPos; - vec4 eyeCoordPosition = u_modelMatrix * vertex; + vec4 vertex = u_modelMatrix * i_vertPos; + vec4 eyeCoordPosition = u_rotMatrix * vertex; v_eyeCoordPosition = eyeCoordPosition; gl_Position = u_projectionMatrix * eyeCoordPosition;