- Make voxels slightly larger so that the size of one 3D "texel" is the same as one 2D texel at the same location.

SVN r3708 (trunk)
This commit is contained in:
Randy Heit 2012-06-24 03:56:53 +00:00
parent 41f2337e7a
commit f897b1a1a2

View file

@ -2245,8 +2245,11 @@ void R_DrawVoxel(fixed_t dasprx, fixed_t daspry, fixed_t dasprz, angle_t daspran
dasprx = dasprx >> 12;
daspry = -daspry >> 12;
dasprz = -dasprz >> 8;
daxscale >>= 10;
dayscale >>= 10;
// Shift the scales from 16 bits of fractional precision to 6.
// Also do some magic voodoo scaling to make them the right size.
daxscale = daxscale / (0xD000 >> 6);
dayscale = dayscale / (0xD000 >> 6);
cosang = viewcos >> 2;
sinang = -viewsin >> 2;