Skip to content

Add compatibility with Oculus/Iris Shaders#3

Open
DonFlymoor wants to merge 2 commits into
CoFH:1.18.2from
DonFlymoor:patch-1
Open

Add compatibility with Oculus/Iris Shaders#3
DonFlymoor wants to merge 2 commits into
CoFH:1.18.2from
DonFlymoor:patch-1

Conversation

@DonFlymoor

Copy link
Copy Markdown

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