mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-11-22 20:39:57 +01:00
Compute height even for wall pixels
This commit is contained in:
parent
c737137402
commit
3a0c1dfffe
1 changed files with 2 additions and 1 deletions
|
@ -1335,7 +1335,7 @@ void _RCL_columnFunctionComplex(RCL_HitResult *hits, uint16_t hitCount, uint16_t
|
||||||
p.depth = distance;
|
p.depth = distance;
|
||||||
p.isFloor = 1;
|
p.isFloor = 1;
|
||||||
p.texCoords.x = hit.textureCoord;
|
p.texCoords.x = hit.textureCoord;
|
||||||
p.height = 0; // don't compute this, no use
|
p.height = fZ1World + _RCL_camera.height;
|
||||||
|
|
||||||
// draw floor wall
|
// 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?
|
if (_RCL_ceilFunction != 0 && cPosY < _RCL_camResYLimit) // pixels left?
|
||||||
{
|
{
|
||||||
p.isFloor = 0;
|
p.isFloor = 0;
|
||||||
|
p.height = cZ1World + _RCL_camera.height;
|
||||||
|
|
||||||
limit = _RCL_drawWall(cPosY,cZ1Screen,cZ2Screen,
|
limit = _RCL_drawWall(cPosY,cZ1Screen,cZ2Screen,
|
||||||
-1,fPosY - 1,
|
-1,fPosY - 1,
|
||||||
|
|
Loading…
Reference in a new issue