commit 3c40752cea5fe396bdfb46eb32a8ca1dda78050c
parent c28b1d555fb8c32bd3f0525f85f66b3b0502f447
Author: bsandro <email@bsandro.tech>
Date: Mon, 10 Nov 2025 01:58:52 +0200
magic uv modifier to correct the texture shift
Diffstat:
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/hina.astc b/hina.astc
Binary files differ.
diff --git a/texture.c b/texture.c
@@ -250,12 +250,15 @@ int main(int argc, char *argv[]) {
glGenVertexArrays(1, &vao);
glBindVertexArray(vao);
+ // @todo geh
+ const GLfloat c = 0.099f;
+
// x,y,tx,ty
static const GLfloat vertices[] = {
- -0.5, -0.5, 0, 1,
- 0.5, -0.5, 1, 1,
- 0.5, 0.5, 1, 0,
- -0.5, 0.5, 0, 0
+ -0.5, -0.5, 0+c, 1-c,
+ 0.5, -0.5, 1-c, 1-c,
+ 0.5, 0.5, 1-c, 0+c,
+ -0.5, 0.5, 0+c, 0+c
};
static const GLuint elements[] = {
0, 1, 2,