2017-01-01 22:47:53 +00:00
|
|
|
#version 420 core
|
|
|
|
|
2017-01-17 04:36:03 +00:00
|
|
|
#include "clip.frag.glsl"
|
2017-01-01 22:47:53 +00:00
|
|
|
|
|
|
|
layout(location = 0) in vec2 inPos;
|
|
|
|
layout(location = 1) in vec2 inTexCoord;
|
|
|
|
|
|
|
|
layout(set = 0, binding = 0) uniform sampler2D inTexture;
|
|
|
|
|
|
|
|
layout(location = 0) out vec4 color;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2017-01-17 04:36:03 +00:00
|
|
|
color = clip (inPos, texture (inTexture, inTexCoord));
|
2017-01-01 22:47:53 +00:00
|
|
|
}
|