mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Tidy up the magic glow layer
This commit is contained in:
parent
5697a92643
commit
dcd2442442
1 changed files with 9 additions and 8 deletions
|
@ -5,17 +5,18 @@ import net.minecraft.client.render.RenderPhase;
|
||||||
import net.minecraft.client.render.VertexFormats;
|
import net.minecraft.client.render.VertexFormats;
|
||||||
|
|
||||||
public class MagicGlow extends RenderPhase {
|
public class MagicGlow extends RenderPhase {
|
||||||
|
private MagicGlow(String name, Runnable beginAction, Runnable endAction) {
|
||||||
public MagicGlow(String name, Runnable beginAction, Runnable endAction) {
|
|
||||||
super(name, beginAction, endAction);
|
super(name, beginAction, endAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static final RenderLayer MAGIC = RenderLayer.method_24048("mlp_magic_glow", VertexFormats.POSITION_COLOR_TEXTURE_LIGHT_NORMAL, 7, 256, RenderLayer.MultiPhaseData.builder()
|
||||||
|
.texture(NO_TEXTURE)
|
||||||
|
.transparency(TRANSLUCENT_TRANSPARENCY)
|
||||||
|
.lightmap(DISABLE_LIGHTMAP)
|
||||||
|
.cull(DISABLE_CULLING)
|
||||||
|
.build(false));
|
||||||
|
|
||||||
public static RenderLayer getRenderLayer() {
|
public static RenderLayer getRenderLayer() {
|
||||||
return RenderLayer.method_24048("mlp_magic_glow", VertexFormats.POSITION_COLOR_TEXTURE_LIGHT_NORMAL, 7, 256, RenderLayer.MultiPhaseData.builder()
|
return MAGIC;
|
||||||
.texture(NO_TEXTURE)
|
|
||||||
.transparency(TRANSLUCENT_TRANSPARENCY)
|
|
||||||
.lightmap(DISABLE_LIGHTMAP)
|
|
||||||
.cull(DISABLE_CULLING)
|
|
||||||
.build(false));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue