Skip to content

Commit 8f88819

Browse files
Bugfix
1 parent e4f0134 commit 8f88819

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.2.3
2+
### Fixes
3+
- Fixed bug related to frameTimeCounter.
4+
15
## 1.2.2
26
### Additions
37
- Added config `Vanilla Light`

shaders/program/gbuffers_textured.fsh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ uniform float rainStrength;
1919

2020
uniform 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)
2323
uniform 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);

0 commit comments

Comments
 (0)