glsl/block_vertex.glsl now passes vertex attributes to the fragment shader

This commit is contained in:
CobaltXII
2018-12-28 20:54:14 -05:00
parent f51deb8db9
commit 603b6104ce

View File

@@ -10,7 +10,15 @@ uniform mat4 matrix_projection;
uniform mat4 matrix_view;
out vec3 frag_texture;
out float frag_lighting;
void main()
{
gl_Position = vec4(vertex_position, 1.0f);
gl_Position = matrix_projection * matrix_view * vec4(vertex_position, 1.0f);
frag_texture = vertex_texture;
frag_lighting = vertex_lighting;
}