# Pastebin f8qX4GBg TessRenderer.startQuads(DefaultVertexFormats.POSITION_TEX_LMAP_COLOR) val wr = TessRenderer.getRenderer val bComp = (brightness >> 16 & 65535, brightness & 65535) // brightness composite val increment = 0.5D wr.pos(-increment, +increment, 0D).tex(0D, 1D).lightmap( bComp._1, bComp._2).color(red, green, blue, opacity).endVertex() wr.pos(+increment, +increment, 0.0D).tex(1.0D, 1.0D).lightmap( bComp._1, bComp._2).color(red, green, blue, opacity).endVertex() wr.pos(+increment, -increment, 0.0D).tex(1.0D, 0.0D).lightmap( bComp._1, bComp._2).color(red, green, blue, opacity).endVertex() wr.pos(-increment, -increment, 0.0D).tex(0.0D, 0.0D).lightmap( bComp._1, bComp._2).color(red, green, blue, opacity).endVertex()