mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-11-21 20:29:59 +01:00
Fix ceil texture
This commit is contained in:
parent
f186330cf2
commit
606020312d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue