Update
This commit is contained in:
parent
9bd293af66
commit
995781570e
2 changed files with 3 additions and 3 deletions
|
@ -1004,7 +1004,7 @@ inline void pixelFunc(PixelInfo *pixel)
|
|||
if (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);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
be seen at less shaky head bobbing when moving. However the latter
|
||||
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. */
|
||||
|
||||
//#define USE_DIST_APPROX 1
|
||||
|
@ -944,7 +944,7 @@ inline void pixelFunc(PixelInfo *pixel)
|
|||
c = textureAverageColors[pixel->hit.type];
|
||||
#else
|
||||
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];
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue