skia2/tests/sksl/shared/RectangleTexture.glsl

10 lines
291 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
layout (binding = 0) uniform sampler2D test2D;
layout (binding = 1) uniform sampler2D test2DRect;
void main() {
sk_FragColor = texture(test2D, vec2(0.5));
sk_FragColor = texture(test2DRect, vec2(0.5));
sk_FragColor = textureProj(test2DRect, vec3(0.5));
}