When a player or an entity is partially inside of the ground, it is rendered too dark.
Entities riding boats, minecarts or other entities are rendered too dark when their hitbox intersects solid blocks
Ligthing of slimes and magma cubes becomes dark when they land to the ground
Entities are rendered too dark when standing on soul sand or snow layers
Entities are sometimes rendered too dark when changing heights