mirror of
https://github.com/slendidev/lunar.git
synced 2025-12-14 19:49:51 +02:00
13
shaders/tex_image.frag
Normal file
13
shaders/tex_image.frag
Normal file
@@ -0,0 +1,13 @@
|
||||
#version 450
|
||||
|
||||
layout (location = 0) in vec3 in_color;
|
||||
layout (location = 1) in vec2 in_uv;
|
||||
|
||||
layout (location = 0) out vec4 out_frag_color;
|
||||
|
||||
layout (set = 0, binding = 0) uniform sampler2D tex;
|
||||
|
||||
void main() {
|
||||
out_frag_color = texture(tex, in_uv) * vec4(in_color, 1.0f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user