intersect.frag 278 B

123456789101112131415
  1. #version 310 es
  2. // SPDX-License-Identifier: Unlicense OR MIT
  3. precision mediump float;
  4. layout(location = 0) in highp vec2 vUV;
  5. layout(binding = 0) uniform sampler2D cover;
  6. layout(location = 0) out vec4 fragColor;
  7. void main() {
  8. fragColor.r = abs(texture(cover, vUV).r);
  9. }