MoonWorksComputeSpriteBatch/shaders/sprite.frag

14 lines
273 B
GLSL
Raw Normal View History

2022-01-18 04:39:23 +00:00
#version 450
layout(set = 1, binding = 0) uniform sampler2D uniformTexture;
layout(location = 0) in vec2 fragCoord;
2022-01-18 05:03:02 +00:00
layout(location = 1) in vec4 color;
2022-01-18 04:39:23 +00:00
layout(location = 0) out vec4 fragColor;
void main()
{
2022-01-18 05:03:02 +00:00
fragColor = texture(uniformTexture, fragCoord) * color;
2022-01-18 04:39:23 +00:00
}