mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-11-24 20:59:58 +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;
|
p.hit = hit;
|
||||||
|
|
||||||
if (_computeTextureCoords)
|
if (_computeTextureCoords)
|
||||||
p.textureCoordY = UNITS_PER_SQUARE - 1 - ((i - z1ScreenCeilNoClamp) *
|
p.textureCoordY = ((i - z1ScreenCeilNoClamp) *
|
||||||
UNITS_PER_SQUARE) / wallScreenHeightCeilNoClamp;
|
UNITS_PER_SQUARE) / wallScreenHeightCeilNoClamp;
|
||||||
|
|
||||||
_pixelFunction(p);
|
_pixelFunction(p);
|
||||||
|
|
Loading…
Reference in a new issue