mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2025-01-08 11:06:18 +01:00
Dont start from negative tex coords
This commit is contained in:
parent
df9e6e740c
commit
646755b45d
1 changed files with 6 additions and 1 deletions
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
author: Miloslav "drummyfish" Ciz
|
author: Miloslav "drummyfish" Ciz
|
||||||
license: CC0 1.0
|
license: CC0 1.0
|
||||||
version: 0.86
|
version: 0.87
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -1163,6 +1163,11 @@ static inline int16_t _RCL_drawWall(
|
||||||
heightScaled - pixelInfo->texCoords.y;
|
heightScaled - pixelInfo->texCoords.y;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// with floor wall, don't start under 0
|
||||||
|
pixelInfo->texCoords.y = RCL_max(0,pixelInfo->texCoords.y);
|
||||||
|
}
|
||||||
|
|
||||||
RCL_Unit textureCoordScaled = pixelInfo->texCoords.y;
|
RCL_Unit textureCoordScaled = pixelInfo->texCoords.y;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue