diff --git a/data/shaders/instanciedgrassshadow.vert b/data/shaders/instanciedgrassshadow.vert index f644039f9..92c21af65 100644 --- a/data/shaders/instanciedgrassshadow.vert +++ b/data/shaders/instanciedgrassshadow.vert @@ -17,6 +17,7 @@ layout(location = 8) in vec3 Orientation; layout(location = 9) in vec3 Scale; #else in vec3 Position; +in vec4 Color; in vec2 Texcoord; in vec3 Origin; diff --git a/data/shaders/rsm.vert b/data/shaders/rsm.vert index 5ed3b9ad4..69846d811 100644 --- a/data/shaders/rsm.vert +++ b/data/shaders/rsm.vert @@ -8,11 +8,17 @@ uniform mat4 TextureMatrix = 0., 0., 1., 0., 0., 0., 0., 1.); - +#if __VERSION__ >= 330 layout(location = 0) in vec3 Position; layout(location = 1) in vec3 Normal; layout(location = 2) in vec4 Color; layout(location = 3) in vec2 Texcoord; +#else +in vec3 Position; +in vec3 Normal; +in vec4 Color; +in vec2 Texcoord; +#endif out vec3 nor; out vec2 uv; diff --git a/data/shaders/shadow.vert b/data/shaders/shadow.vert index d1212e7ea..d7f6316e6 100644 --- a/data/shaders/shadow.vert +++ b/data/shaders/shadow.vert @@ -9,8 +9,13 @@ layout (std140) uniform MatrixesData uniform mat4 ModelMatrix; +#if __VERSION__ >= 330 layout(location = 0) in vec3 Position; layout(location = 3) in vec2 Texcoord; +#else +in vec3 Position; +in vec2 Texcoord; +#endif #ifdef VSLayer out vec2 uv; diff --git a/data/shaders/shadow_grass.vert b/data/shaders/shadow_grass.vert index 0e26cdb4f..7b1ce0caf 100644 --- a/data/shaders/shadow_grass.vert +++ b/data/shaders/shadow_grass.vert @@ -10,9 +10,15 @@ layout (std140) uniform MatrixesData uniform mat4 ModelMatrix; uniform vec3 windDir; +#if __VERSION__ >= 330 layout(location = 0) in vec3 Position; layout(location = 2) in vec4 Color; layout(location = 3) in vec2 Texcoord; +#else +in vec3 Position; +in vec4 Color; +in vec2 Texcoord; +#endif #ifdef VSLayer out vec2 uv;