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

Add compatibility with Oculus/Iris Shaders #3

Open
wants to merge 2 commits into
base: 1.18.2
Choose a base branch
from

Conversation

DonFlymoor
Copy link

Returns a zero when an entity has no night vision instead of max brightness.

This fixes shaders that rely on getting the night vision from a player for lighting effect, as you can call onGetNightVisionScale on any entity regardless of whether it has night vision or not if you use Oculus/Iris.

(See https://github.com/Asek3/Oculus/blob/a2ed79988284940bf3f72e1321f6c36530ccbf97/src/main/java/net/coderbot/iris/uniforms/CommonUniforms.java#L253)

Returns a zero when an entity has no night vision instead of max brightness
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