Hello, I am working on a raycasting engine project. I got to the point where i can render textured walls with correct perspective. I am now trying to render floor and ceiling with textures. I am following Lode tutorial on how to do this but the floor is moving very weirdly and i can't get what is wrong. Any help would be appreciated.
Here is the project repo :
https://github.com/Bazouz660/RaycasterProject
The code for the floor raycasting is under src/raycasting/wall_cast.c