diff options
Diffstat (limited to '')
-rw-r--r-- | cwd/shaders/block.fs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cwd/shaders/block.fs b/cwd/shaders/block.fs new file mode 100644 index 0000000..e239f7b --- /dev/null +++ b/cwd/shaders/block.fs @@ -0,0 +1,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); +} + |