fs_debugdraw_fill.sc 425 B

12345678910111213141516171819
  1. /*
  2. * Copyright 2011-2025 Branimir Karadzic. All rights reserved.
  3. * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
  4. */
  5. #include <bgfx_shader.sh>
  6. uniform vec4 u_params[4];
  7. #define u_lightDir u_params[0].xyz
  8. #define u_shininess u_params[0].w
  9. #define u_skyColor u_params[1].xyz
  10. #define u_groundColor u_params[2].xyz
  11. #define u_matColor u_params[3]
  12. void main()
  13. {
  14. gl_FragColor = u_matColor;
  15. }