2020-06-02 02:23:11 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(location = 0) in vec2 v_Uv;
|
2020-06-22 00:43:36 +00:00
|
|
|
layout(location = 1) in vec4 v_Color;
|
2020-06-02 02:23:11 +00:00
|
|
|
|
|
|
|
layout(location = 0) out vec4 o_Target;
|
|
|
|
|
2020-06-06 07:12:38 +00:00
|
|
|
layout(set = 1, binding = 2) uniform texture2D TextureAtlas_texture;
|
|
|
|
layout(set = 1, binding = 3) uniform sampler TextureAtlas_texture_sampler;
|
2020-06-02 02:23:11 +00:00
|
|
|
|
|
|
|
void main() {
|
2020-06-22 00:43:36 +00:00
|
|
|
o_Target = v_Color * texture(
|
2020-06-06 07:12:38 +00:00
|
|
|
sampler2D(TextureAtlas_texture, TextureAtlas_texture_sampler),
|
2020-06-04 02:00:19 +00:00
|
|
|
v_Uv);
|
2020-06-02 02:23:11 +00:00
|
|
|
}
|