Adjust some stuff
This commit is contained in:
parent
4b9b6ad8ae
commit
b181256e58
8 changed files with 595 additions and 578 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue