1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/raycastlib.git synced 2024-12-23 01:26:19 +01:00

Fix ceil texture

This commit is contained in:
Miloslav Číž 2018-09-06 11:11:00 +02:00
parent f186330cf2
commit 606020312d

View file

@ -770,7 +770,7 @@ void _columnFunction(HitResult *hits, uint16_t hitCount, uint16_t x, Ray ray)
p.hit = hit;
if (_computeTextureCoords)
p.textureCoordY = UNITS_PER_SQUARE - 1 - ((i - z1ScreenCeilNoClamp) *
p.textureCoordY = ((i - z1ScreenCeilNoClamp) *
UNITS_PER_SQUARE) / wallScreenHeightCeilNoClamp;
_pixelFunction(p);