Skip to content

Commit

Permalink
#6053: Fix regular stage shader program, it previously ignored the in…
Browse files Browse the repository at this point in the history
…coming object and model view transforms
  • Loading branch information
codereader committed Aug 6, 2022
1 parent 094b5b7 commit 278ad3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install/gl/regular_stage_vp.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 278ad3d

Please sign in to comment.