Sodium

Sodium

35M Downloads

Incorrect shadows

StealWonders opened this issue ยท 6 comments

commented

Expected Behavior

Expected should be that the shadows either be darker than normal or just no shadows.
See this screenshot:

javaw_6H9iexObun

Actual Behavior

Sodium-fabric causes the shadows of the trees and around the house to be lighter than the actual normal lighting... This looks very unrealistic :(
Screenshot:

javaw_N7Ve4BOPqH

Reproduction Steps

Build a tree and look at its shadows, generate a vanilla world, and look at those shadows.
This issue is with vanilla generated worlds too. Depending on biome it looks worse or less.

System Information

  • Java Version: 1.8.0_51 64bit
  • CPU: Intel(R) Core(TM) i7-4790K
  • GPU: GeForce GTX 1080

Enabled in the mod:

  • Chunk Renderer: OpenGL 4.6
commented

Sodium re-implements the entire smooth lighting engine in order to improve chunk rendering performance and to fix a few graphical issues. As a result, the rendering between the two will not always be identical.

However, it is rather difficult for me to tell the difference between these screenshots as they've been compressed heavily and the camera moves between each shot. If you're able to, cleaner images would help a lot in diagnosing this problem.

commented

It might not be obvious as the marking is not clear but if you look near big outline just on the inner side some blocks look de-saturated/brightened
in this area:
sodium#22_area_selected
Alot more contrast:
sodium#22_contrast_a_bit_more_sane
Edge here:
sodium#22_contrast_a_bit_more_sane_edge
this should make it a bit clearer

commented

Sorry for the images but the issue is hardly noticeable.

No sodium:
2020-06-21_19 21 50

With sodium:
You may be able to tell that the wall of the house is outlined by a two block wide lighter grass strip.
2020-06-21_19 21 03

Image highlighting the border of where the shadows are to make it more clear.
ApplicationFrameHost_H7wkqAit9E

Light level near the house (using Vanilla):
javaw_XYtrrbdXjh

Light level further away from the house (using Vanilla):
javaw_mYKfgFa0hL

The light levels are the same when using sodium of course but the coloring of the grass (shadows) is brighter than normal grass which makes no sense...

commented

Are you using the latest revision of Sodium? There were some issues in an earlier version with the vertex encoding stage that caused weirdness like this.

commented

Are you using the latest revision of Sodium? There were some issues in an earlier version with the vertex encoding stage that caused weirdness like this.

Let me recompile. Here are some further screenshots of the issue for now:

javaw_I1QwmFSH4n

javaw_qXMnOiGbu8

commented

Issue is non-existent on the latest commit as of now. I'ma close this!