From 8ac4fe6d5ba5091923c7fdf1fa88724d827706fa Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Fri, 26 May 2017 19:11:17 +0500 Subject: 2017-05-26 --- cwd/shaders/block.fs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cwd/shaders/block.fs (limited to 'cwd/shaders/block.fs') 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); +} + -- cgit v1.2.3