supercell-wx/scwx-qt/gl/radar.frag
2021-07-27 00:24:12 -05:00

26 lines
440 B
GLSL

#version 330 core
// Lower the default precision to medium
precision mediump float;
uniform sampler2D uTexture;
flat in uint dataMoment;
layout (location = 0) out vec4 fragColor;
void main()
{
if (dataMoment < 126u)
{
fragColor = vec4(0.0f, 0.5f, 0.0f, 0.9f);
}
else if (dataMoment < 156u)
{
fragColor = vec4(1.0f, 0.75f, 0.0f, 0.9f);
}
else
{
fragColor = vec4(1.0f, 0.0f, 0.0f, 0.9f);
}
}