Adjust some stuff

This commit is contained in:
Miloslav Ciz 2024-09-20 15:22:18 +02:00
parent 4b9b6ad8ae
commit b181256e58
8 changed files with 595 additions and 578 deletions

View file

@ -14,6 +14,8 @@
#define UNIT 512
#define ARRAY_MAX 1024
#define UV_OFFSET -0.01
int vertices[ARRAY_MAX * 3];
int vertexTypes[ARRAY_MAX];
int vertexCount;
@ -112,6 +114,9 @@ int main(void)
if (sscanf(line + 2,"%f %f",&a,&b) != 2)
error(4);
a += UV_OFFSET;
b += UV_OFFSET;
uvs[2 * uvCount] = a * UNIT;
uvs[2 * uvCount + 1] = (1 - b) * UNIT;