pushTransform

abstract void pushTransform(RenderContext.QuadTransform transform)

Causes all models/quads/meshes sent to this consumer to be transformed by the provided QuadTransform that edits each quad before buffering. Quads in the mesh willbe passed to the QuadTransform for modification before offsets, face culling or lighting are applied.Meant for animation and mesh customization.

You MUST call popTransform after model is done outputting quads.

More than one transformer can be added to the context. Transformers are applied in reverse order.(Last pushed is applied first.)

Meshes are never mutated by the transformer - only buffered quads. This ensures thread-safeuse of meshes/models across multiple chunk builders.

Sources

jvm source
Link copied to clipboard