15 lines
347 B
Plaintext
15 lines
347 B
Plaintext
#version 450
|
|
|
|
layout(set = 0, binding = 1) uniform texture2D uTex;
|
|
layout(set = 0, binding = 0) uniform sampler uSampler;
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
layout(location = 0) in vec2 vUV;
|
|
|
|
void main()
|
|
{
|
|
FragColor = texture(sampler2D(uTex, uSampler), vUV);
|
|
FragColor += textureOffset(sampler2D(uTex, uSampler), vUV, ivec2(1));
|
|
}
|
|
|