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

28 lines
532 B
GLSL

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