summaryrefslogtreecommitdiffstats
path: root/cwd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cwd/shaders/block.fs16
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);
}