Skip to main content
Version: GeckoLib5

RenderPassInfo

The RenderPassInfo is an all-inclusive object that GeckoLib uses to hold all information related to a GeoRenderer's render pass.

Overview

At the beginning of each render pass (GeoRenderer#performRenderPass), GeckoLib instantiates a new RenderPassInfo instance.

This instance is then passed around to everywhere the GeoRenderer interacts with in the process of its render pass.
This allows for full access to the properties of the render pass without needing to have an unmanageable number of method parameters.

What does it hold?

  • The GeoRenderer instance
  • The GeoRenderState instance
  • The PoseStack
  • The BakedGeoModel for the render pass
  • The CameraRenderState for the render pass
  • Various PoseStack matrix snapshots for
  • The BoneUpdaters for the render pass
  • Any BonePositionListeners registered for the render pass
  • Any PerBoneRenders registered for the render pass

What can I do with it?

Because the RenderPassInfo is the singular collection point of all the data for a render pass, you can retrieve that data at any time from the instance GeckoLib passes around.

Additionally, you can do some other specific things: