From 98daa161a0b8f2c07178cd8a341a2c551a1015f0 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 26 Jan 2012 16:35:07 +0000 Subject: [PATCH] change mdl texcoord loading to not have a .5 pixel offset, this now matches winquake (complete top row and left column are used, bottom row and right column are not because the texcoords would be off the skin) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11659 d7cf8633-e32d-0410-b094-e92efae38249 --- model_alias.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model_alias.c b/model_alias.c index 7a53d59e..e471cfa5 100644 --- a/model_alias.c +++ b/model_alias.c @@ -1020,8 +1020,8 @@ void Mod_IDP0_Load(dp_model_t *mod, void *buffer, void *bufferend) for (i = 0;i < numverts;i++) { vertonseam[i] = LittleLong(pinstverts[i].onseam); - vertst[i*2+0] = (LittleLong(pinstverts[i].s) + 0.5) * scales; - vertst[i*2+1] = (LittleLong(pinstverts[i].t) + 0.5) * scalet; + vertst[i*2+0] = LittleLong(pinstverts[i].s) * scales; + vertst[i*2+1] = LittleLong(pinstverts[i].t) * scalet; vertst[(i+numverts)*2+0] = vertst[i*2+0] + 0.5; vertst[(i+numverts)*2+1] = vertst[i*2+1]; } -- 2.39.2