Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix EntityCulling culling outlines of entities #186

Open
Alexdoru opened this issue Jul 18, 2024 · 0 comments
Open

Fix EntityCulling culling outlines of entities #186

Alexdoru opened this issue Jul 18, 2024 · 0 comments

Comments

@Alexdoru
Copy link
Contributor

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 :

private static boolean checkEntity(Entity entity) {

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);
Wyvest added a commit to Polyfrost/PolyPatcher that referenced this issue Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant