sashakoshka/m4kc

Renderer bugs out in the negatives

Opened this issue · 3 comments

Anything past -64 on any axis becomes distorted. Issue is independent of whether gameLoop uses doubles or floats. May have something to do with modulo.

This does not pose a problem yet unless the code is edited to loop the world, but it will affect the game once infinite terrain is added.

Screenshot from 2021-05-11 00-28-48

There is a wierd issue that seems to be caused by this where the renderer will duplicate the last block and leave off one face at the end of the far negative chunks.

This issue has been somewhat mitigated by gaining control of the render offset and increasing it.

Partially fixed by #32