Oculus

Oculus

48M Downloads

Using RenderType.endGateway() on an Entity

lab3 opened this issue ยท 1 comments

commented

What happened?

When using RenderType.endGateway() on an Entity in game they become invisible.

I tried digging through the code but I couldn't locate which commit oculus-mc1.19.2-1.2.8a.jar was built from.

Here is the full renderer code. Not much to it.

public class VoidTentacleRenderer extends GeoEntityRenderer<VoidTentacle> {

    public VoidTentacleRenderer(EntityRendererProvider.Context context) {
        super(context, new VoidTentacleModel());
        //this.addLayer(new GeoKeeperGhostLayer(this));
        this.shadowRadius = 1f;
    }

    @Override
    public void renderEarly(VoidTentacle animatable, PoseStack poseStack, float partialTick, MultiBufferSource bufferSource, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float partialTicks) {
        //poseStack.scale(1.3f, 1.3f, 1.3f);
        super.renderEarly(animatable, poseStack, partialTick, bufferSource, buffer, packedLight, packedOverlay, red, green, blue, partialTicks);
    }

    @Override
    public RenderType getRenderType(VoidTentacle animatable, float partialTick, PoseStack poseStack, @Nullable MultiBufferSource bufferSource, @Nullable VertexConsumer buffer, int packedLight, ResourceLocation texture) {
        return RenderType.endGateway();
    }
}

Screenshots

This is what it looks like without Oculus installed. They become invisible when it's installed.
image

Relevant log output

No response

Minecraft Version

1.19.2

Oculus Version

oculus-mc1.19.2-1.2.8a.jar

Rubidium Version

N/A

Operating System

Windows 10

What is your GPU?

Nvidia GeForce RTX 3080

Java Version

17

Additional context

No response

commented

Given that I haven't heard anything on this, I'm not sure what to do except tell our community not to use Oculus.