2022-03-26 06:34:58 -05:00
|
|
|
#version 140
|
|
|
|
|
|
|
|
in vec2 position;
|
|
|
|
in vec2 tex_coords;
|
2022-03-29 05:58:46 -05:00
|
|
|
in vec4 light_color;
|
|
|
|
|
|
|
|
out vec3 v_frag_color;
|
2022-03-26 06:34:58 -05:00
|
|
|
out vec2 v_tex_coords;
|
2022-03-29 05:58:46 -05:00
|
|
|
out float v_sun_intensity;
|
2022-03-26 06:34:58 -05:00
|
|
|
|
|
|
|
uniform mat4 matrix;
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
v_tex_coords = tex_coords;
|
2022-03-29 05:58:46 -05:00
|
|
|
|
|
|
|
v_frag_color = vec3(light_color.rgb);
|
|
|
|
v_sun_intensity = light_color.a;
|
|
|
|
|
2022-03-26 06:34:58 -05:00
|
|
|
gl_Position = matrix * vec4(position, 0.0, 1.0);
|
|
|
|
}
|