mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-16 06:59:44 -05:00
render/gles2: move color uniform from quad.vert to quad.frag
We have no use for a v_color varying. We can use the uniform directly from the fragment shader without getting the vertex shader involved.
This commit is contained in:
parent
a75f9be2e8
commit
d69018c195
2 changed files with 2 additions and 4 deletions
|
|
@ -1,7 +1,8 @@
|
|||
precision mediump float;
|
||||
varying vec4 v_color;
|
||||
varying vec2 v_texcoord;
|
||||
uniform vec4 color;
|
||||
|
||||
void main() {
|
||||
gl_FragColor = v_color;
|
||||
gl_FragColor = color;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue