IrisShaders / Iris

A modern shaders mod for Minecraft compatible with existing OptiFine shader packs
https://irisshaders.dev
GNU Lesser General Public License v3.0
3.34k stars 636 forks source link

Top/Bottom face lighting is swapped when shaders are enabled #2048

Open Sollace opened 1 year ago

Sollace commented 1 year ago

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

Fauli1221 commented 1 year ago

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