File tree Expand file tree Collapse file tree 6 files changed +27
-30
lines changed
Expand file tree Collapse file tree 6 files changed +27
-30
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ block.10108=deepslate cobbled_deepslate infested_deepslate cobbled_deepslate_wal
5050block.10112 =polished_deepslate deepslate_bricks cracked_deepslate_bricks deepslate_tiles cracked_deepslate_tiles chiseled_deepslate polished_deepslate_wall deepslate_brick_wall deepslate_tile_wall polished_deepslate_stairs deepslate_brick_stairs deepslate_tile_stairs polished_deepslate_slab deepslate_brick_slab deepslate_tile_slab mud muddy_mangrove_roots mangrove_roots
5151block.10116 =calcite
5252block.10120 =dripstone_block pointed_dripstone daylight_detector
53- block.10124 =grass_block:snowy=true
54- block.10128 =dirt coarse_dirt rooted_dirt podzol mycelium dirt_path farmland:moisture=0 farmland:moisture=1 farmland:moisture=2 farmland:moisture=3 farmland:moisture=4 farmland:moisture=5 farmland:moisture=6
53+ block.10124 =grass_block:snowy=true podzol:snowy=true mycelium:snowy=true
54+ block.10128 =dirt coarse_dirt rooted_dirt podzol:snowy=false mycelium:snowy=false dirt_path farmland:moisture=0 farmland:moisture=1 farmland:moisture=2 farmland:moisture=3 farmland:moisture=4 farmland:moisture=5 farmland:moisture=6
5555block.10132 =grass_block:snowy=false
5656block.10136 =farmland:moisture=7
5757block.10140 =netherrack
Original file line number Diff line number Diff line change @@ -225,6 +225,8 @@ void main() {
225225 northVec = normalize (gbufferModelView[2 ].xyz);
226226 sunVec = GetSunVector();
227227
228+ if (normal != normal) normal = - upVec; // Mod Fix: Fixes Better Nether Fireflies
229+
228230 #if defined GENERATED_NORMALS || defined COATED_TEXTURES
229231 if (blockEntityId == 60008 ) { // Chest
230232 float fractWorldPosY = fract ((gbufferModelViewInverse * gl_ModelViewMatrix * gl_Vertex ).y + cameraPosition.y);
Original file line number Diff line number Diff line change @@ -57,23 +57,22 @@ void main() {
5757 float VdotS = dot (nViewPos, sunVec);
5858 float VdotU = dot (nViewPos, upVec);
5959
60-
6160 if (abs (tSize.y - 48.0 ) < 16.5 ) {
62- if (VdotS > 0.0 ) {
63- color.rgb *= float (color.b > 0.1775 ); // 0.065 to 0.290
64-
65- if ( color.b > 0.48 ) { // 0.295 to 0.665
66- color.rgb *= 12.0 ;
67- } else {
68- color.rgb *= 8.0 ;
69- }
70-
71- color.rgb *= normalize (lightColor);
72-
73- #ifdef SUN_MOON_HORIZON
74- color.rgb *= 0.2 + 0.8 * sunVisibility2;
75- #endif
76- } else {
61+ if (VdotS > 0.0 ) { // Sun
62+ if (color.b > 0.1775 ) { // 0.065 to 0.290
63+ if (color.b > 0.48 ) { // 0.295 to 0.665
64+ color.rgb *= 12.0 ;
65+ } else {
66+ color.rgb *= 8.0 ;
67+ }
68+
69+ color.rgb *= normalize (lightColor);
70+
71+ #ifdef SUN_MOON_HORIZON
72+ color.rgb *= 0.2 + 0.8 * sunVisibility2;
73+ #endif
74+ } else discard ;
75+ } else { // Moon
7776 color.rgb *= sqrt2(max0(color.r - 0.115 )); // 0.065 to 0.165
7877 color.rgb *= 1.5 ;
7978 }
@@ -83,7 +82,7 @@ void main() {
8382 #else
8483 color.rgb *= pow2(pow2(pow2(min1(VdotU + 1.0 ))));
8584 #endif
86- } else {
85+ } else { // Custom Sky
8786 color.rgb *= color.rgb * smoothstep1(sqrt1(max0(VdotU)));
8887 }
8988
Original file line number Diff line number Diff line change @@ -83,10 +83,6 @@ void main() {
8383 vec4 colorP = color;
8484 color *= glColor;
8585
86- #if defined OVERWORLD && CLOUD_QUALITY > 0
87- float cloudLinearDepth = texelFetch(gaux1, texelCoord, 0 ).r;
88- #endif
89-
9086 vec3 screenPos = vec3 (gl_FragCoord .xy / vec2 (viewWidth, viewHeight), gl_FragCoord .z);
9187 vec3 viewPos = ScreenToView(screenPos);
9288 float lViewPos = length (viewPos);
@@ -98,8 +94,10 @@ void main() {
9894 #endif
9995
10096 #if defined OVERWORLD && CLOUD_QUALITY > 0
97+ float cloudLinearDepth = texelFetch(gaux1, texelCoord, 0 ).r;
98+
10199 if (cloudLinearDepth > 0.0 ) // Because Iris changes the pipeline position of opaque particles
102- if (pow2(cloudLinearDepth + OSIEBCA * dither) * far < lViewPos) discard ;
100+ if (pow2(cloudLinearDepth + OSIEBCA * dither) * far < min ( lViewPos, far) ) discard ;
103101 #endif
104102
105103 vec3 shadowMult = vec3 (1.0 );
Original file line number Diff line number Diff line change @@ -158,10 +158,6 @@ void main() {
158158 vec4 colorP = texture2D (texture, texCoord);
159159 vec4 color = colorP * vec4 (glColor.rgb, 1.0 );
160160
161- #if defined OVERWORLD && CLOUD_QUALITY > 0
162- float cloudLinearDepth = texelFetch(gaux1, texelCoord, 0 ).r;
163- #endif
164-
165161 vec2 screenCoord = gl_FragCoord .xy / vec2 (viewWidth, viewHeight);
166162 vec3 screenPos = vec3 (screenCoord, gl_FragCoord .z);
167163 #ifdef TAA
@@ -177,7 +173,9 @@ void main() {
177173 #endif
178174
179175 #if defined OVERWORLD && CLOUD_QUALITY > 0
180- if (pow2(cloudLinearDepth + OSIEBCA * dither) * far < lViewPos) discard ;
176+ float cloudLinearDepth = texelFetch(gaux1, texelCoord, 0 ).r;
177+
178+ if (pow2(cloudLinearDepth + OSIEBCA * dither) * far < min (lViewPos, far)) discard ;
181179 #endif
182180
183181 vec3 nViewPos = normalize (viewPos);
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ void main() {
157157 #ifdef PERPENDICULAR_TWEAKS
158158 vec3 normal = gl_NormalMatrix * gl_Normal ;
159159
160- if (abs (dot (normal, gl_ModelViewMatrix [2 ].xyz)) > 0.99 ) {
160+ if (abs (dot (normal, gl_ModelViewMatrix [2 ].xyz)) > 0.99 && abs (mat - 20000 ) < 19999 ) {
161161 gl_Position = vec4 (- 1.0 );
162162 } else
163163 #endif
You can’t perform that action at this time.
0 commit comments