From d93c2073896e63aca5a859fe7182ba24dbe84cd3 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 28 May 2017 19:16:05 +0500 Subject: 2017-05-28 --- cwd/shaders/block.fs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'cwd') diff --git a/cwd/shaders/block.fs b/cwd/shaders/block.fs index e239f7b..4df9b7b 100644 --- a/cwd/shaders/block.fs +++ b/cwd/shaders/block.fs @@ -1,5 +1,13 @@ #version 330 core -in vec2 TexCoord; + +struct TextureCoordData { + int blockId; + int blockState; + int blockSide; + vec4 texture; +}; + +in vec2 UvPosition; uniform sampler2D textureAtlas; uniform int block; @@ -8,9 +16,13 @@ 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_FragmentColor = texture(blockTexture,TexCoord); + gl_FragColor = texture(textureAtlas,UvPosition); } -- cgit v1.2.3