From: havoc Date: Thu, 26 Jan 2012 16:35:07 +0000 (+0000) Subject: change mdl texcoord loading to not have a .5 pixel offset, this now X-Git-Tag: xonotic-v0.8.0~96^2~354 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=98daa161a0b8f2c07178cd8a341a2c551a1015f0;p=xonotic%2Fdarkplaces.git 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 --- 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]; }