]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
change mdl texcoord loading to not have a .5 pixel offset, this now
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 26 Jan 2012 16:35:07 +0000 (16:35 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 11 Feb 2012 16:01:25 +0000 (17:01 +0100)
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
::stable-branch::merge=98daa161a0b8f2c07178cd8a341a2c551a1015f0

model_alias.c

index 7a53d59e4a14051f8db336716db287824559c7f6..e471cfa566d9971362d0bb7f8cf9073bf0adf595 100644 (file)
@@ -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];
        }