1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-17 05:37:12 +00:00

Pass lightmap variables around various renderers

- Add lightmap parameters to the text, computer and printout renderers.

 - Printouts are always rendered using the current lightmap. When
   interacting with the GUI, we use the fullbright lightmap coordinate.

 - Pocket computers render their border using the lightmap. Terminal and
   light do not use the lightmap at all.

There's some funkiness going on here with render types - it appears the
"correct" position_color_tex_lightmap render type is actually one used
for text.

Fixes #919. This bug does occur on 1.16 too, but given how complex the
rendering changes are between 1.16 and 1.17 I do /not/ want to have to
implement this twice. Sorry.
This commit is contained in:
Jonathan Coates
2021-09-19 15:49:31 +01:00
parent d0e79f310e
commit 3eb601e554
11 changed files with 146 additions and 140 deletions

View File

@@ -17,7 +17,7 @@ import java.util.Map;
public final class DataHelpers
{
private DataHelpers()
{ }
{}
@Nonnull
public static Map<String, Boolean> getTags( @Nonnull Collection<ResourceLocation> tags )