Debian Codegraph @

tests/auto/qshaderbaker/data/color.frag

raw
1 #version 440
2
3 layout(location = 0) in vec3 v_color;
4 layout(location = 0) out vec4 fragColor;
5
6 layout(std140, binding = 0) uniform buf {
7 mat4 mvp;
8 float opacity;
9 } ubuf;
10
11 void main()
12 {
13 fragColor = vec4(v_color * ubuf.opacity, ubuf.opacity);
14 }