skia2/tests/sksl/shared/TextureSharpen.glsl
Brian Salomon 863bc82c62 Reland "Always apply mipmap sharpening on GPU"
This is a reland of commit 1aedd5dc11

Original change's description:
> Always apply mipmap sharpening on GPU
>
> Bug: skia:13078
>
> Change-Id: If459a96eba09fb10e967bc364435f79b83fdc1ec
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/522099
> Reviewed-by: Michael Ludwig <michaelludwig@google.com>
> Commit-Queue: Brian Salomon <bsalomon@google.com>

Bug: skia:13078
Change-Id: Ic05b38fc07566f090d609431f2738d64dfdc8a66
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/524218
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2022-04-01 17:53:28 +00:00

12 lines
359 B
GLSL

out vec4 sk_FragColor;
layout (binding = 0) uniform sampler1D one;
layout (binding = 1) uniform sampler2D two;
void main() {
vec4 a = texture(one, 0.0, -0.475);
vec4 b = texture(two, vec2(0.0), -0.475);
vec4 c = textureProj(one, vec2(0.0), -0.475);
vec4 d = textureProj(two, vec3(0.0), -0.475);
sk_FragColor = vec4(a.x, b.x, c.x, d.x);
}