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

Compute height even for wall pixels

This commit is contained in:
Miloslav Číž 2019-09-27 04:11:52 +02:00
parent c737137402
commit 3a0c1dfffe

View file

@ -1335,7 +1335,7 @@ void _RCL_columnFunctionComplex(RCL_HitResult *hits, uint16_t hitCount, uint16_t
p.depth = distance;
p.isFloor = 1;
p.texCoords.x = hit.textureCoord;
p.height = 0; // don't compute this, no use
p.height = fZ1World + _RCL_camera.height;
// draw floor wall
@ -1365,6 +1365,7 @@ void _RCL_columnFunctionComplex(RCL_HitResult *hits, uint16_t hitCount, uint16_t
if (_RCL_ceilFunction != 0 && cPosY < _RCL_camResYLimit) // pixels left?
{
p.isFloor = 0;
p.height = cZ1World + _RCL_camera.height;
limit = _RCL_drawWall(cPosY,cZ1Screen,cZ2Screen,
-1,fPosY - 1,