tor-browser

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

uintUniformShader.vert (468B)


      1 #version 300 es
      2 
      3 /*
      4 Copyright (c) 2019 The Khronos Group Inc.
      5 Use of this source code is governed by an MIT-style license that can be
      6 found in the LICENSE.txt file.
      7 */
      8 
      9 uniform uint uval;
     10 uniform uvec2 uval2;
     11 uniform uvec3 uval3;
     12 uniform uvec4 uval4;
     13 
     14 void main()
     15 {
     16    uint sum = uval
     17            + uval2[0] + uval2[1]
     18            + uval3[0] + uval3[1] + uval3[2]
     19            + uval4[0] + uval4[1] + uval4[2] + uval4[3];
     20    gl_Position = vec4(sum, 0.0, 0.0, 1.0);
     21 }