1#version 140 2 3layout (std140) uniform UBO // offset can't use under version 140 4{ 5 layout(offset = 0) vec4 a; 6}; 7 8in vec4 in_vs; 9out vec4 out_vs; 10 11void main() 12{ 13 out_vs = in_vs + a; 14} 15