tor-browser

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

gpu_cache_update.glsl (561B)


      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 base
      6 
      7 varying highp vec4 vData;
      8 
      9 #ifdef WR_VERTEX_SHADER
     10 in vec4 aValue;
     11 in vec2 aPosition;
     12 
     13 void main() {
     14     vData = aValue;
     15     gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);
     16     gl_PointSize = 1.0;
     17 }
     18 
     19 #endif //WR_VERTEX_SHADER
     20 
     21 #ifdef WR_FRAGMENT_SHADER
     22 out vec4 oValue;
     23 
     24 void main() {
     25     oValue = vData;
     26 }
     27 #endif //WR_FRAGMENT_SHADER