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 shaders not rendering overworld stars properly #94

Open
wants to merge 1 commit into
base: 1.20.1
Choose a base branch
from

Conversation

doonv
Copy link

@doonv doonv commented Oct 26, 2024

This fixes a bug where stars would render in the day as black dots while using certain shaders:

Complementary Shaders Reimagined (With Embeddium & Oculus), Current Northstar Version:
image

This PR fixes this bug by rendering stars in the same area of code where vanilla stars are rendered (So the stars are rendered are in the same stage as vanilla stars, which makes shaders treat them like vanilla stars), I removed unused code from the renderSky2 mixin and renamed it to renderSkyStarsOverworld.

I also reformatted the entire LevelRendererMixin.java file, which unfortunately makes this PR very hard to review. (sorry about that, you can enable "Hide Widespace" in the options to make it easier)

Also flying above Y450 still looks like it did before (with black stars and no earth below), I might fix that in a later PR.

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.

1 participant