From 278ad3deefbb65e989fa04d71945c6d245e5f5aa Mon Sep 17 00:00:00 2001 From: codereader Date: Sat, 6 Aug 2022 10:56:59 +0200 Subject: [PATCH] #6053: Fix regular stage shader program, it previously ignored the incoming object and model view transforms --- install/gl/regular_stage_vp.glsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/gl/regular_stage_vp.glsl b/install/gl/regular_stage_vp.glsl index ac11ada3f6..e3f642e8e6 100644 --- a/install/gl/regular_stage_vp.glsl +++ b/install/gl/regular_stage_vp.glsl @@ -18,8 +18,9 @@ varying vec4 var_Colour; // colour to be multiplied on the final fragment void main() { + // Apply the supplied object transform to the incoming vertex // transform vertex position into homogenous clip-space - gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; + gl_Position = u_ModelViewProjection * u_ObjectTransform * attr_Position; // Apply the texture matrix to get the texture coords for this vertex var_TexDiffuse.x = dot(u_DiffuseTextureMatrix[0], attr_TexCoord);