fs_bokeh_copy.sc 337 B

123456789101112131415161718
  1. $input v_texcoord0
  2. /*
  3. * Copyright 2021 elven cache. All rights reserved.
  4. * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
  5. */
  6. #include "../common/common.sh"
  7. #include "parameters.sh"
  8. SAMPLER2D(s_color, 0);
  9. void main()
  10. {
  11. vec2 texCoord = v_texcoord0;
  12. vec4 color = texture2D(s_color, texCoord);
  13. gl_FragColor = color;
  14. }