Use normalized texture coordinates

This commit is contained in:
Sylvain
2021-03-17 09:58:49 +01:00
committed by Sylvain Becker
parent 5828cc415a
commit f73c1eff10
7 changed files with 13 additions and 19 deletions

View File

@@ -986,8 +986,8 @@ GLES2_QueueGeometry(SDL_Renderer *renderer, SDL_RenderCommand *cmd, SDL_Texture
*(verts++) = v->color.a * inv255f;
if (texture) {
*(verts++) = v->tex_coord.x / texture->w;
*(verts++) = v->tex_coord.y / texture->h;
*(verts++) = v->tex_coord.x;
*(verts++) = v->tex_coord.y;
}
}
return 0;