Why is my function for ray tracing through voxels using DDA not working correctly?
I do not understand the concept of ray tracing through DDA very well, and I cannot understand the error in my code that does not allow voxels to be displayed correctly from a 3D texture. I kind of tried to do this from the tutorial to create a DDA for 2D graphics, and tried to transfer it to 3D, but it doesn’t work. It is possible, and most likely likely, that I implemented DDA incorrectly, and incorrectly get the voxel value from the 3D texture. I would also like to apply 3 vectors to calculations – the displacement of the model in world coordinates, rotation by Pitch -> Yaw -> Roll, and scaling the model along three axes.