mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-11-21 20:29:59 +01:00
Fix floor depth
This commit is contained in:
parent
8963c08039
commit
d66750be79
1 changed files with 1 additions and 1 deletions
|
@ -1220,7 +1220,7 @@ Unit coordStep = 1;
|
|||
// draw floor
|
||||
|
||||
p.isWall = 0;
|
||||
p.depth = _middleRow * _horizontalDepthStep;
|
||||
p.depth = (_middleRow - y) * _horizontalDepthStep;
|
||||
|
||||
while (y < _camera.resolution.y)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue