Skip to content

Fix shaders not rendering overworld stars properly#94

Open
doonv wants to merge 1 commit intolightning2401:1.20.1from
doonv:1.20.1
Open

Fix shaders not rendering overworld stars properly#94
doonv wants to merge 1 commit intolightning2401:1.20.1from
doonv:1.20.1

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