mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
03ab560fae
Use appropriate names, and annotate the names with the types — 'u' for uniforms, 'a' for attributes. The common preambles for shaders are split from the bodies, so we need some way to distinguish the uniforms and the attributes just from their name.
6 lines
114 B
GLSL
6 lines
114 B
GLSL
void main() {
|
|
vec4 diffuse = Texture(uSource, vUv);
|
|
|
|
setOutputColor(vec4(diffuse.xyz, diffuse.a * uAlpha));
|
|
}
|