summaryrefslogblamecommitdiffstats
path: root/cwd/shaders/block.fs
blob: e239f7b1d5220a9a40e6b5db0fb380a6c3f6c12d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                      
#version 330 core
in vec2 TexCoord;

uniform sampler2D textureAtlas;
uniform int block;

vec4 GetTextureByBlockId(int BlockId) {
    return vec4(0,0,0,0);
}

void main()
{
    vec4 TextureCoords = GetTextureByBlockId(block);
    gl_FragmentColor = texture(blockTexture,TexCoord);
}