Patcher icon indicating copy to clipboard operation
Patcher copied to clipboard

Fix EntityCulling culling outlines of entities

Open Alexdoru opened this issue 1 year ago • 0 comments

If you have entity culling enabled + some mod that renders entity outlines, EntityCulling will cancel the render of the outlines.

This method needs to be changed : https://github.com/Sk1erLLC/Patcher/blob/4ce6e196e5ad1339f8a0ab96eb5680c2f6464583/src/main/java/club/sk1er/patcher/util/world/render/culling/EntityCulling.java#L174

Current :

if (renderingSpawnerEntity) return false;
OcclusionQuery query = queries.computeIfAbsent(entity.getUniqueID(), OcclusionQuery::new);

Fixed :

if (renderingSpawnerEntity || renderManagerAccessor.isRenderOutlines()) return false;
OcclusionQuery query = queries.computeIfAbsent(entity.getUniqueID(), OcclusionQuery::new);

Alexdoru avatar Jul 18 '24 12:07 Alexdoru