trackIfNeeded

fun trackIfNeeded(renderType: RenderType, entity: Entity?): RenderType

Tracks an entity render submission while leaving the vanilla render type unchanged.

A capture context is only established for entities that should be shown as chams, and only up until the next submission (or the end of the level entity submissions, see clearEntityContext).