Skip to content

Render Layers (Geckolib3)

Tslat edited this page Jul 3, 2023 · 2 revisions

Like all vanilla renderers, GeckoLib allows for additional layers of rendering over its normal rendering operations.

This is done through GeoLayerRenderer instances.

Usage

When instantiating your renderer, you can add a new layer to be called at render time to render additional content. This is done by calling addRenderLayer, and passing a new instance of your layer renderer to it.

Example Usage

public class ExampleRenderer extends GeoEntityRenderer<ExampleEntity> {
	public ExampleRenderer(EntityRendererProvider.Context renderManager) {
		super(renderManager, new ExampleEntityModel());

		addRenderLayer(new ExampleGeoRenderLayer(this));
	}
}

Table of Contents

Geckolib 3
Geckolib 4

Hosted By: Cloudsmith

Package repository hosting is graciously provided by Cloudsmith.

Cloudsmith is the only fully hosted, cloud-native, universal package management solution that enables your organization to create, store and share packages in any format, to any place, with total confidence.

Clone this wiki locally