Files
wgpu/tests/out/glsl/quad.main.Fragment.glsl
T

26 lines
476 B
GLSL

#version 310 es
precision highp float;
struct VertexOutput {
vec2 uv;
vec4 position;
};
uniform highp sampler2D _group_0_binding_0;
smooth in vec2 _vs2fs_location0;
layout(location = 0) out vec4 _fs2p_location0;
void main() {
vec2 uv1 = _vs2fs_location0;
vec4 color = texture(_group_0_binding_0, vec2(uv1));
if ((color.w == 0.0)) {
discard;
}
vec4 premultiplied = (color.w * color);
_fs2p_location0 = premultiplied;
return;
}