Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/noxhy/cp2-Pack
Browse files Browse the repository at this point in the history
  • Loading branch information
Flooooop committed Oct 13, 2024
2 parents 57b4e29 + 0970a90 commit d5440ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/minecraft/shaders/core/rendertype_text.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ void main() {
// If you are merging with another shader, replace the code below here with the code that they have in their main() function

vec4 color = texture(Sampler0, texCoord0) * vertexColor * ColorModulator;
if (color.a < 0.1) {
if (!(((vertexColor.x * 255.0) == 240.0 && (vertexColor.y * 255.0) == 242.0 && (vertexColor.z * 255.0) == 242.0) || ((vertexColor.x * 255.0) == 168.0 && (vertexColor.y * 255.0) == 242.0 && (vertexColor.z * 255.0) == 242.0) || ((vertexColor.x * 255.0) == 164.0 && (vertexColor.y * 255.0) == 242.0 && (vertexColor.z * 255.0) == 242.0))) {
discard;
}
if (color.a < 0.1)
{
discard;
}

fragColor = linear_fog(color, vertexDistance, FogStart, FogEnd, FogColor);
}

0 comments on commit d5440ce

Please sign in to comment.