There is a quick solution to this problem because you just have to turn off the smooth lighting. For the Java Edition and MCPE this should be enough, but for the Windows 10 Edition, you should also use a night vision potion. You can use this potion in the other editions as well. Optionally you can also install the mod Optifine.