863bc82c62
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>
11 lines
314 B
GLSL
11 lines
314 B
GLSL
#version 110
|
|
uniform sampler1D one;
|
|
uniform sampler2D two;
|
|
void main() {
|
|
vec4 a = texture1D(one, 0.0, -0.475);
|
|
vec4 b = texture2D(two, vec2(0.0), -0.475);
|
|
vec4 c = texture1DProj(one, vec2(0.0), -0.475);
|
|
vec4 d = texture2DProj(two, vec3(0.0), -0.475);
|
|
gl_FragColor = vec4(a.x, b.x, c.x, d.x);
|
|
}
|