What:
Add an optional "gui_shade" setting for custom block/item models to use in resource packs. It should default to "true". If set to true, the model should be shaded in GUIs, like anything that doesn't use "builtin/generated" as a model parent currently. If set to false, the model should be full-bright in GUIs, like anything that uses "builtin/generated" as a model parent currently.
Why:
If I make a custom 3D ladder item model or such (to make the rungs poke out in front of the rails), while intending to keep the GUI display the same (front-facing, filling out an inventory slot), the ladder's texture will appear roughly 15% darker in GUIs than if I used an auto-generated "flat" model. This slight darkness is annoying, and can't be avoided when using a custom non-generated item model, as the model's internal "GUI 3D"(?) variable, used to enable/disable shading for models in the GUI, is only set to "false" if the model is auto-generated.
How:
I don't know the technical "how" for certain, but it most likely involves making the asset file "assets/minecraft/models/item/generated" set that hypothetical new "gui_shade" option to "false", and then doing some kind of magic code stuffs to make models full-bright in GUIs if that's set to "false" instead of checking the model's unexposed internal "GUI 3D"(?) variable.
Please sign in to leave a comment.
1 Comments