evaluate-dpoit.frag.ts 397 B

1234567891011121314151617
  1. /**
  2. * Copyright (c) 2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  3. *
  4. * @author Gianluca Tomasello <giagitom@gmail.com>
  5. */
  6. export const evaluateDpoit_frag = `
  7. precision highp float;
  8. uniform sampler2D tDpoitFrontColor;
  9. uniform vec2 uTexSize;
  10. void main() {
  11. vec2 coords = gl_FragCoord.xy / uTexSize;
  12. gl_FragColor = texture2D(tDpoitFrontColor, coords);
  13. }
  14. `;