your current location:首页 > news>GECKOLIB model luminous tutorial

GECKOLIB model luminous tutorial

2024-12-06 22:09:42|Myriagame |source:minecraft skins

This tutorial is to let the Gecko Library model shine without using Optifine, for reference only

Use light and shadow: Complementshaders_v4.3.3

The effect of not glowing:

In the itemrenderer.java of the engineering file of the corresponding model, insert the following code:

@outerride

Public Void Render (Geomodel Model, Bailuitem Animatable, Float PARTIALTICKS, Rendertype Type, PoseStack MatrixStackin, Multibuffersource Renderedpebu FFER, VertexConsumer Vertexbuilder,

Int Packedlightin, Int PackedOverLayin, Float Red, Float Green, Float Blue, Float Alpha) {{

This.currentbuffer = rendertypebuffer;

This.readrtype = Type;

This.animatable = Animatable;

Packedlightin = 0xf000FF;

Super.Render (Model, Animatable, PartialTicks, Type, MatrixStackin, Rendertypebuffer, Vertexbuilder, PackedLightin, PackedOverLayin, Red, Green, Blue, Blue Alpha);

If (this.readrarms) {

This.readrarms = false;

}

}

Key code line: Packedlightin = 0xf000FF;

Then normal compile export jar

Lighting effect:

Note: This method can only be rendered to the full drawing diagram, not partially glowing, and at the same time, due to the effect of different light and shadow rendering effects, different effects may occur

The effect of using Nostalgia_V3.0