wynnpack-archive/assets/minecraft/shaders/core/render/text.fsh

37 lines
822 B
Text
Raw Normal View History

2024-08-25 12:42:26 +00:00
#version 150
#define FRAGMENT_SHADER
#define RENDERTYPE_TEXT
#moj_import <fog.glsl>
#moj_import <text.glsl>
2024-08-25 12:43:53 +00:00
#moj_import <version.glsl>
2024-08-25 12:42:26 +00:00
uniform sampler2D Sampler0;
uniform vec4 ColorModulator;
uniform float FogStart;
uniform float FogEnd;
uniform vec4 FogColor;
in float vertexDistance;
in vec4 vertexColor;
in vec2 texCoord0;
in float depth;
out vec4 fragColor;
void main() {
transform.vertexColor = vertexColor;
transform.colorMod = ColorModulator;
transform.texColor = texture(Sampler0, texCoord0);
transform.color = transform.texColor * vertexColor * ColorModulator;
transform.textDepth = depth;
2024-08-25 12:43:53 +00:00
#if defined(MC_1_20_2)
2024-08-25 12:42:26 +00:00
disableShadow(0);
2024-08-25 12:43:53 +00:00
#elif defined(MC_1_20_5)
2024-08-25 12:42:26 +00:00
disableShadow(2200);
2024-08-25 12:43:53 +00:00
#endif
2024-08-25 12:42:26 +00:00
fragColor = linear_fog(transform.color, vertexDistance, FogStart, FogEnd, FogColor);
}