mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 12:22:35 +00:00
26 lines
435 B
GLSL
26 lines
435 B
GLSL
|
|
in vec4 Color;
|
|
in vec2 UV;
|
|
|
|
out vec4 FragColor;
|
|
|
|
// Render settings
|
|
// x = texel width
|
|
// y = texel height
|
|
// z = FSAA blend factor
|
|
// w = transparency
|
|
uniform vec4 rendersettings;
|
|
|
|
uniform sampler2D texture1;
|
|
uniform vec4 texturefactor;
|
|
|
|
void main()
|
|
{
|
|
vec4 c = texture(texture1, UV);
|
|
FragColor = vec4(c.rgb, c.a * rendersettings.w);
|
|
FragColor *= texturefactor;
|
|
|
|
#if defined(ALPHA_TEST)
|
|
if (FragColor.a < 0.5) discard;
|
|
#endif
|
|
}
|