Bug 1857841 - pt 3. Add a new page kind named "fresh" r=glandium
[gecko.git] / gfx / wr / webrender / res / ps_clear.glsl
blob567dea978d2ada2fa6feccd538a6171e326986b1
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include shared
7 varying mediump vec4 vColor;
9 #ifdef WR_VERTEX_SHADER
10 PER_INSTANCE in vec4 aRect;
11 PER_INSTANCE in vec4 aColor;
13 void main(void) {
14     vec2 pos = mix(aRect.xy, aRect.zw, aPosition.xy);
15     gl_Position = uTransform * vec4(pos, 0.0, 1.0);
16     gl_Position.z = gl_Position.w; // force depth clear to 1.0
17     vColor = aColor;
19 #endif
21 #ifdef WR_FRAGMENT_SHADER
22 void main(void) {
23     oFragColor = vColor;
25 #endif