glsl/block_fragment.glsl now samples it's output color from a texture

This commit is contained in:
CobaltXII
2018-12-28 20:55:26 -05:00
parent 6eae186d02
commit 38e8e099ce

View File

@@ -10,5 +10,10 @@ out vec4 fragment_color;
void main()
{
fragment_color = vec4(1.0f, 1.0f, 1.0f, 1.0f);
fragment_color = texture(block_texture_array, frag_texture);
if (fragment_color.w == 0.0f)
{
discard;
}
}