optifine icon indicating copy to clipboard operation
optifine copied to clipboard

[1.21.3/1.21.4 Bug] Darkness effect is made pitch black by custom lightmaps specifically in dark areas

Open SeaOfPixels opened this issue 1 year ago • 3 comments

Description of Issue

The darkness effect is far stronger than it should be in dark areas when using a resource pack with a custom lightmap, regardless of what the lightmap actually does. It renders darkness as near-fully pitch black. Also affects 1.21.1.

OptiFine Version

OptiFine 1.21.1_HD_U_J1, OptiFine 1.21.3_HD_U_J2_pre9, OptiFine 1.21.3_HD_U_J2, OptiFine 1.21.4_HD_U_J3_pre1, OptiFine 1.21.4_HD_U_J3, OptiFine 1.21.4_HD_U_J4_pre1

Screenshots

No custom lightmap (correct): 2024-11-25_08 17 09

With custom lightmap (incorrect): 2024-11-25_08 17 02

SeaOfPixels avatar Nov 25 '24 16:11 SeaOfPixels

Works for me, tested on pre11 with NewDefault++.

image

sp614x avatar Nov 27 '24 10:11 sp614x

The bug does not appear in full brightness, for example in your screenshot you're on the surface at day time. The darkness effect is made overly dark specifically in dark lighting, seemingly stacking with the normal darkness.

SeaOfPixels avatar Nov 27 '24 11:11 SeaOfPixels

In OptiFine 1.21.4_HD_U_J3 & OptiFine 1.21.4_HD_U_J4_pre1.

SeaOfPixels avatar Feb 18 '25 22:02 SeaOfPixels

In preview_OptiFine_1.21.6_HD_U_J6_pre1.

SeaOfPixels avatar Jun 28 '25 00:06 SeaOfPixels

In OptiFine 1.21.10_HD_U_J7_pre3

SeaOfPixels avatar Nov 25 '25 05:11 SeaOfPixels