aboutsummaryrefslogtreecommitdiffstatsci
path: root/shaders/simpletexture.frag
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/simpletexture.frag')
-rw-r--r--shaders/simpletexture.frag15
1 files changed, 15 insertions, 0 deletions
diff --git a/shaders/simpletexture.frag b/shaders/simpletexture.frag
new file mode 100644
index 0000000..b4a7934
--- /dev/null
+++ b/shaders/simpletexture.frag
@@ -0,0 +1,15 @@
+#version 450
+
+#extension GL_ARB_separate_shader_objects : enable
+#extension GL_ARB_shading_language_420pack : enable
+
+layout (set = 2, binding = 0) uniform sampler2D samplerColor;
+
+layout (location = 0) in vec2 inUV;
+
+layout (location = 0) out vec4 outFragColor;
+
+void main()
+{
+ outFragColor = texture(samplerColor, inUV);
+}