tor-browser

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

samplerForWebGL2UniformShader.frag (398B)


      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 precision mediump float;
     10 uniform mediump sampler3D s3D;
     11 uniform mediump sampler2DArray s2DArray;
     12 out vec4 fragColor;
     13 void main()
     14 {
     15  fragColor = texture(s3D, vec3(0.5, 0.5, 0.5)) +
     16      texture(s2DArray, vec3(0.5, 0.5, 0.5));
     17 }