Sk1erLLC / Patcher

A Forge mod full of Vanilla bug fixes, Quality of Life improvements, and performance enhancements.
Other
232 stars 60 forks source link

Fix EntityCulling culling outlines of entities #186

Open Alexdoru opened 3 months ago

Alexdoru commented 3 months ago

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);