File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ ## 1.2.3
2+ ### Fixes
3+ - Fixed bug related to frameTimeCounter.
4+
15## 1.2.2
26### Additions
37- Added config ` Vanilla Light `
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ uniform float rainStrength;
1919
2020uniform int renderStage;
2121
22- #if AIWS_SOURCE == 0 || AIWS_SOURCE == 3
22+ #if AIWS_SOURCE == 0 || AIWS_SOURCE == 3 || LIGHTMAP_DITERING != - 1 || defined(DITTER_FOG)
2323uniform float frameTimeCounter;
2424#endif
2525
@@ -98,7 +98,9 @@ void main()
9898 // Combine lightmap with blindness.
9999 vec3 light = CalculateLightStrengthAndColor(sunAngle);
100100
101+ #if LIGHTMAP_DITERING != - 1 || defined(DITTER_FOG)
101102 float time8 = mod (frameTimeCounter * 7.987 , 8192 );
103+ #endif
102104#if LIGHTMAP_DITERING != - 1
103105 if (renderStage == MC_RENDER_STAGE_TERRAIN_SOLID) {
104106 light = (1 . - blindness) * max (light + (LIGHTMAP_DITERING_F * Random_float(coord1 * time8 + worldPos.x + worldPos.y + worldPos.z) / 16.0 ), 0.0 );
You can’t perform that action at this time.
0 commit comments