diff --git a/demo1.cpp b/demo1.cpp index c395878..e62cc81 100644 --- a/demo1.cpp +++ b/demo1.cpp @@ -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 diff --git a/demo2.cpp b/demo2.cpp index 275745d..14a96ac 100644 --- a/demo2.cpp +++ b/demo2.cpp @@ -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