diff options
Diffstat (limited to 'gsk/vulkan/resources/texture.frag')
-rw-r--r-- | gsk/vulkan/resources/texture.frag | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gsk/vulkan/resources/texture.frag b/gsk/vulkan/resources/texture.frag new file mode 100644 index 0000000000..ee9eb459a9 --- /dev/null +++ b/gsk/vulkan/resources/texture.frag @@ -0,0 +1,15 @@ +#version 420 core + +#include "clip.frag.glsl" + +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() +{ + color = clip (inPos, texture (inTexture, inTexCoord)); +} |