tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ps_clear.glsl (631B)


      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/. */
      4 
      5 #include shared
      6 
      7 varying mediump vec4 vColor;
      8 
      9 #ifdef WR_VERTEX_SHADER
     10 PER_INSTANCE in vec4 aRect;
     11 PER_INSTANCE in vec4 aColor;
     12 
     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;
     18 }
     19 #endif
     20 
     21 #ifdef WR_FRAGMENT_SHADER
     22 void main(void) {
     23     oFragColor = vColor;
     24 }
     25 #endif