I just wrote this shader and it doesn't compile, I have been searching for hours and even checked validators I can not find what is the compilation error. This is my last resort, can anyone spot anything wrong here?
#version 150 core
uniform sampler2D texture1;
in vec4 pass_Color;
in vec2 pass_TextureCoord;
in vec2 pass_Velocity;
out vec4 out_Color;
void main(void) {
out_Color = pass_Color;
vec4 color = texture(texture1, pass_TextureCoord) * pass_Color ;
pass_TextureCoord += pass_Velocity;
for(int i = 1; i < 6; ++i, pass_TextureCoord += pass_Velocity)
{
vec4 currentColor = texture(texture1, pass_TextureCoord) * pass_Color ;
color += currentColor;
}
out_Color = (color / 6.0f);
}