Bliss Shaders

Bliss Shaders

423k Downloads

Players incorrectly lit with RTAO and SSGI when not affected by ambient light

Deevian opened this issue ยท 2 comments

commented

Players are incorrectly lit (i.e. not lit at all) when using RTAO or SSGI and when not affected by ambient light.

In other words: when in caverns (e.g.), players appear completely black:

broken

On the surface, they're correctly lit, though not affected by torches or other sources of light:

broken1

Other entities, such as bats or zombies, appear to be correctly lit in caverns; this seems to only affect the player character.

Tracked down the cause to this commit (though by the size of it, it might not help narrow down the cause ๐Ÿ™ˆ):

25a2284

For context, here is how it looked before that version:

working
working1

commented

Might be related to this:

if(hand) lighting = skylightcolor/1.5;

Removing that line mostly fixes the issue:

imagem

Hand torches are still not correctly emitting light, but that's probably unrelated to the issue described here.

commented

this should be fixed now