Skip to content

Commit

Permalink
Drop compatibility mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Mar 25, 2022
1 parent 03a18a0 commit a496ddd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ogre_media/materials/glsl150/pass_pos_color.vert
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -7,6 +12,6 @@ out VertexData {
} vdata;

void main() {
gl_Position = gl_Vertex;
vdata.color = gl_Color;
gl_Position = vertex;
vdata.color = colour;
}

0 comments on commit a496ddd

Please sign in to comment.