2017-09-22 18:20:57 +00:00
|
|
|
#version 420 core
|
|
|
|
|
2023-05-20 00:56:02 +00:00
|
|
|
#include "common.frag.glsl"
|
2017-09-22 18:20:57 +00:00
|
|
|
#include "clip.frag.glsl"
|
|
|
|
|
|
|
|
layout(location = 0) in vec2 inPos;
|
|
|
|
layout(location = 1) in vec2 inStartTexCoord;
|
|
|
|
layout(location = 2) in vec2 inEndTexCoord;
|
2023-05-20 00:56:02 +00:00
|
|
|
layout(location = 3) flat in uint inStartTexId;
|
|
|
|
layout(location = 4) flat in uint inEndTexId;
|
|
|
|
layout(location = 5) in float inProgress;
|
2017-09-22 18:20:57 +00:00
|
|
|
|
|
|
|
layout(location = 0) out vec4 color;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2023-05-20 00:56:02 +00:00
|
|
|
vec4 start = texture (textures[inStartTexId], inStartTexCoord);
|
|
|
|
vec4 end = texture (textures[inEndTexId], inEndTexCoord);
|
2017-09-22 18:20:57 +00:00
|
|
|
|
|
|
|
color = clip (inPos, mix (start, end, inProgress));
|
|
|
|
}
|