From a496dddae9060bcb708dc3c2454400b5c4310fa4 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Fri, 18 Mar 2022 08:24:36 +0100 Subject: [PATCH] Drop compatibility mode --- ogre_media/materials/glsl150/pass_pos_color.vert | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ogre_media/materials/glsl150/pass_pos_color.vert b/ogre_media/materials/glsl150/pass_pos_color.vert index 327dfc9012..216e1feb0a 100644 --- a/ogre_media/materials/glsl150/pass_pos_color.vert +++ b/ogre_media/materials/glsl150/pass_pos_color.vert @@ -1,4 +1,9 @@ -#version 150 compatibility +#version 150 + +// need to use exactly these names to have OGRE bind the unpacked values: +// https://ogrecave.github.io/ogre/api/latest/_high-level-_programs.html#Binding-vertex-attributes +in vec4 vertex; +in vec4 colour; // this merely passes over position and color as needed by box.geom @@ -7,6 +12,6 @@ out VertexData { } vdata; void main() { - gl_Position = gl_Vertex; - vdata.color = gl_Color; + gl_Position = vertex; + vdata.color = colour; }