summaryrefslogtreecommitdiffstats
path: root/cwd/shaders/block.fs
blob: 4df9b7b1e1aecb50e1f41c350bb9cac2060fdcd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#version 330 core

struct TextureCoordData {
    int blockId;
    int blockState;
    int blockSide;
    vec4 texture;
};

in vec2 UvPosition;

uniform sampler2D textureAtlas;
uniform int block;

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

vec4 TransformTextureCoord(vec4 TextureAtlasCoords){
    return vec4(0,0,0,0);
}

void main()
{
    vec4 TextureCoords = GetTextureByBlockId(block);
    gl_FragColor = texture(textureAtlas,UvPosition);
}