mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-07-07 12:32:54 +00:00

- Move all RenderType instances into a common class. Cherry-picked from 41fa95bce4408239bc59e032bfa9fdc7418bcb19: - Render GL_QUADS instead of GL_TRIANGLES. - Remove any "immediate mode" methods from FWFR. Most use-cases can be replaced with the global MultiBufferSource and a proper RenderType (which we weren't using correctly before!). Only the GUI code (WidgetTerminal) needs to use the immediate mode. - Pre-convert palette colours to bytes, storing both the coloured and greyscale versions as a byte array. Cherry-picked from 3eb601e55402536d752720e9474ab4ecb27d2f5f: - Pass lightmap variables around the various renderers. Fixes #919 for 1.16!