Implement rendering for item models with emissive quads (#5047)

This commit is contained in:
tterrag committed 2019-04-12 10:45:32 -04:00
1 parent 1280dea111
commit 67da3182c1
4 files changed
+227 -8

No files matched your search

@@ -125,6 +125,8 @@ public class ForgeConfig
public final BooleanValue selectiveResourceReloadEnabled;
public final BooleanValue showLoadWarnings;
public final BooleanValue allowEmissiveItems;
Client(ForgeConfigSpec.Builder builder) {
builder.comment("Client only settings, mostly things related to rendering")
@@ -166,6 +168,11 @@ public class ForgeConfig
.comment("When enabled, forge will show any warnings that occurred during loading")
.translation("forge.configgui.showloadwarnings")
.define("showLoadWarnings", true);
allowEmissiveItems = builder
.comment("Allow item rendering to detect emissive quads and draw them properly. This allows glowing blocks to look the same in item form, but incurs a very slight performance hit.")
.translation("forge.configgui.allowEmissiveItems")
.define("allowEmissiveItems", true);
builder.pop();
}