2019-11-28 20:02:42 +01:00
|
|
|
package com.minelittlepony.client.render;
|
|
|
|
|
|
|
|
import net.minecraft.client.render.RenderLayer;
|
|
|
|
import net.minecraft.client.render.RenderPhase;
|
|
|
|
import net.minecraft.client.render.VertexFormats;
|
|
|
|
|
|
|
|
public class MagicGlow extends RenderPhase {
|
2019-11-29 10:30:41 +01:00
|
|
|
private MagicGlow(String name, Runnable beginAction, Runnable endAction) {
|
2019-11-28 20:02:42 +01:00
|
|
|
super(name, beginAction, endAction);
|
|
|
|
}
|
|
|
|
|
2019-11-29 10:30:41 +01:00
|
|
|
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));
|
|
|
|
|
2019-11-28 20:02:42 +01:00
|
|
|
public static RenderLayer getRenderLayer() {
|
2019-11-29 10:30:41 +01:00
|
|
|
return MAGIC;
|
2019-11-28 20:02:42 +01:00
|
|
|
}
|
|
|
|
}
|