bevy/crates/bevy_sprite/src/render/sprite_sheet.frag

15 lines
358 B
GLSL
Raw Normal View History

#version 450
layout(location = 0) in vec2 v_Uv;
layout(location = 0) out vec4 o_Target;
2020-06-04 02:00:19 +00:00
layout(set = 1, binding = 2) uniform texture2D SpriteSheet_texture;
layout(set = 1, binding = 3) uniform sampler SpriteSheet_texture_sampler;
void main() {
o_Target = texture(
sampler2D(SpriteSheet_texture, SpriteSheet_texture_sampler),
2020-06-04 02:00:19 +00:00
v_Uv);
}