diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-05-28 16:16:05 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-05-28 16:16:05 +0200 |
commit | d93c2073896e63aca5a859fe7182ba24dbe84cd3 (patch) | |
tree | 6144aaf7e01854fe245011ca4f4735974366febb /cwd | |
parent | 2017-05-26 (diff) | |
download | AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.gz AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.bz2 AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.lz AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.xz AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.zst AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.zip |
Diffstat (limited to '')
-rw-r--r-- | cwd/shaders/block.fs | 16 |
1 files changed, 14 insertions, 2 deletions
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); } |