Iris Shaders

Iris Shaders

38M Downloads

Top/Bottom face lighting is swapped when shaders are enabled

Sollace opened this issue ยท 1 comments

commented

What happened?

Running the game normally with shaders disabled, I see the top faces of custom cuboids appearing correctly (the top face is light and the bottom is dark), however when I turn shaders on I see that these two are swapped.

I've tried to debug whether this is something on my end, but any changes I make to change the lighting to appear correctly with shaders only results in them appearing swapped in vanilla (without iris+sodium/shaders) so it's my suspicion that the condition for lighting is possibly reversed for these two faces somewhere within iris.

For reference, in the vanilla game lighting assignments for the top and bottom faces are:

Top = Direction.DOWN
Bottom = Direction.UP

Screenshots

Without shaders:
image
With shaders:
image

Log output

No response

Minecraft Version

ex. Minecraft 1.20.1

Iris Version

ex. iris-mc1.20-1.6.4.jar

Operating System

ex. Linux (6.1.31-2-MANJARO)

What is your GPU?

Mesa Intel(R) UHD Graphics (TGL GT1) (Supports OpenGL 4.6 (Core Profile) Mesa 23.1.1 (git-fa55e3c026))

Additional context

No response

commented

Can confirm this issue is already present in 1.6.2 on 1.19.2 on my NVIDIA GeForce RTX 2060 SUPER