The current state of rendering is quite sad.
Why does both RenderHelper.ScreenToNormal and RenderHelper.ScreenToNormalNew both exist and what is the difference. UIText does not use either and just uses it's own thing that hardly works.
Furthermore it seems most if not all VBOs pass a vec3 for the position of the draw however this is a 2D game and thus the z element will never not be 0 and even if it was it would make a difference.
TODOS:
[ ] Stop using both RenderHelper.ScreenToNormal and RenderHelper.ScreenToNormalNew or rename one to a better name
[ ] Stop using vec3 for position in VBOs
[ ] Create a helper to create a square out of triangles as every render just has copy pasted code
[ ] Provide better comments on the renders as they are now each doing their own thing for some reason
The current state of rendering is quite sad. Why does both
RenderHelper.ScreenToNormal
andRenderHelper.ScreenToNormalNew
both exist and what is the difference.UIText
does not use either and just uses it's own thing that hardly works. Furthermore it seems most if not all VBOs pass a vec3 for the position of the draw however this is a 2D game and thus thez
element will never not be 0 and even if it was it would make a difference. TODOS:RenderHelper.ScreenToNormal
andRenderHelper.ScreenToNormalNew
or rename one to a better name