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
GeoRendererinstance - The
GeoRenderStateinstance - The
PoseStack - The
BakedGeoModelfor the render pass - The
CameraRenderStatefor the render pass - Various
PoseStackmatrix snapshots for - The
BoneUpdatersfor the render pass - Any
BonePositionListenersregistered 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: