I'm programming a game in raycasting similar to wolfenstein 3d using raycasting. I'm trying to use different textures on the wall and I'm stuck on the problem you can see in the image. This happen because in my code I always start printing the texture starting from y = 0, now I think I have to find a way to change the starting point based on the distance from the wall but I can't figure out how to do that, can someone help me?Game window displaying the error