Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit 1e9af3f

Browse files
committed
2.6
1 parent 4d30ff0 commit 1e9af3f

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

assets/minecraft/shaders/core/special/lines.fsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ out vec4 fragColor;
1616
void main() {
1717
vec4 color = vertexColor * ColorModulator;
1818

19-
if(color.a < 0.02) {
19+
if (color.a < 0.02) {
2020
float cycle = sin(GameTime * 3000) * sin(GameTime * 3000);
2121
//color = (int(color.r * 8.0 + GameTime * 200) % 2 == 0 ? vec4(1, 1, 0, 0.9) : vec4(0, 0, 0, 0.9));
2222
color = vec4(0.0, 0.0, 0.0, (cycle + 1) / 4);

assets/minecraft/shaders/core/special/nametag.fsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ in vec4 glpos;
1414
out vec4 fragColor;
1515

1616
void main() {
17-
if (!isGUI(ProjMat)) discardControlGLPos(gl_FragCoord.xy, glpos);
17+
discardControlGLPos(gl_FragCoord.xy, glpos);
1818
vec4 color = texture(Sampler0, texCoord0) * vertexColor;
1919
if (color.a < 0.1) {
2020
discard;

assets/minecraft/shaders/include/light.glsl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,12 @@ vec4 minecraft_sample_lightmap(sampler2D lightMap, ivec2 uv) {
2929
//warmer blocklight (torch AND (NOT sun))
3030
light *= mix(vec4(1.0), vec4(1.7, 1.0, 0.4, 1.0), torch * (1.0-sun));
3131
//shadows colors (NOT (torch OR sun))
32-
vec3 tint = vec3(1.0);
3332
if (map.r == map.g && map.g == map.b) { //bluer shadows in overworld
34-
tint = vec3(0.2, 0.2, 0.9);
33+
light *= mix(vec4(1.0), vec4(0.2, 0.2, 0.9, 1.0), max(1.0 - (torch + sun), 0.0));
3534
} else if (map.r > map.g) { //redder shadows in nether
36-
tint = vec3(0.9, 0.6, 0.5);
35+
light *= mix(vec4(1.0), vec4(0.9, 0.6, 0.5, 1.0), max(1.0 - (torch + sun), 0.0));
3736
} else { //purple shadows in end
38-
tint = vec3(0.8, 0.5, 0.8);
37+
light *= mix(vec4(1.0), vec4(0.8, 0.5, 0.8, 1.0), max(1.0 - (torch + sun), 0.0));
3938
}
40-
light *= mix(vec4(1.0), vec4(tint, 1.0), max(1.0 - (torch + sun), 0.0));
41-
4239
return light;
4340
}

assets/minecraft/shaders/program/composite1.fsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ void main() {
7272
}
7373
}
7474
}
75-
75+
7676
fragColor = outColor;
7777
}

v++.zip

-120 KB
Binary file not shown.

0 commit comments

Comments
 (0)