This commit is contained in:
Miloslav Číž 2018-09-16 14:34:40 +02:00
parent 9bd293af66
commit 995781570e
2 changed files with 3 additions and 3 deletions

View file

@ -1004,7 +1004,7 @@ inline void pixelFunc(PixelInfo *pixel)
if (intensity < 0) if (intensity < 0)
intensity = 0; intensity = 0;
c = sampleImage(textures[pixel->hit.type],pixel->hit.textureCoord,pixel->textureCoordY); c = sampleImage(textures[pixel->hit.type],pixel->texCoords.x,pixel->texCoords.y);
c = addIntensity(c,intensity - 3); c = addIntensity(c,intensity - 3);
} }
else else

View file

@ -25,7 +25,7 @@
be seen at less shaky head bobbing when moving. However the latter be seen at less shaky head bobbing when moving. However the latter
algorithm doesn't support rolling doors (these will be turned off). */ algorithm doesn't support rolling doors (these will be turned off). */
#define NO_TEXTURES //#define NO_TEXTURES
/* ^ Turns off textures and only uses colors, which increases FPS. */ /* ^ Turns off textures and only uses colors, which increases FPS. */
//#define USE_DIST_APPROX 1 //#define USE_DIST_APPROX 1
@ -944,7 +944,7 @@ inline void pixelFunc(PixelInfo *pixel)
c = textureAverageColors[pixel->hit.type]; c = textureAverageColors[pixel->hit.type];
#else #else
c = pixel->depth < TEXTURE_MAX_DISTANCE ? c = pixel->depth < TEXTURE_MAX_DISTANCE ?
sampleImage(textures[pixel->hit.type],pixel->hit.textureCoord + textureScroll,pixel->textureCoordY) : sampleImage(textures[pixel->hit.type],pixel->texCoords.x + textureScroll,pixel->texCoords.y) :
textureAverageColors[pixel->hit.type]; textureAverageColors[pixel->hit.type];
#endif #endif