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 chest flickering when a barrel is in sight #33

Merged
merged 2 commits into from
Jul 7, 2024

Conversation

Quarri6343
Copy link
Member

Closes GTNewHorizons/GT-New-Horizons-Modpack#16410

We must use vanilla enableStandardItemLighting() to render GT ores correctly.
However, Vanilla enableStandardItemLighting() leaks directional light setting and ambient light setting to other blocks when Angelica's GLStateCaching is enabled.
To fight against this I wrote enableStandardItemLighting() without unused directional light setting, and cached ambient light setting in the new method to prevent leakage.

@Quarri6343 Quarri6343 requested a review from a team May 29, 2024 12:19
@Cleptomania
Copy link
Member

This fix is maybe fine, but if the underlying issue is Angelica not handling the GL lighting states properly in GLSM, then we need to fix that in Angelica, we should leave this open for the moment until someone looks into it on the Angelica side and sees if we can fix the underlying problem there instead.

@Quarri6343
Copy link
Member Author

ok I'll make an issue on Angelica side

@Dream-Master
Copy link
Member

it work for me.

@Caedis
Copy link
Member

Caedis commented Jun 18, 2024

Also closes GTNewHorizons/GT-New-Horizons-Modpack#16233 (410 was a duplicate of this)

@Caedis
Copy link
Member

Caedis commented Jun 26, 2024

@mitchej123 so you are aware

@Caedis
Copy link
Member

Caedis commented Jul 7, 2024

Been working without issue and fixed the flickering

@mitchej123 mitchej123 merged commit ea798c4 into master Jul 7, 2024
2 checks passed
@mitchej123 mitchej123 deleted the barrel-render-fix-again branch July 7, 2024 17:35
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

Successfully merging this pull request may close these issues.

Vanilla chests lighting flickering after JABBA code change
5 participants