lines.frag.ts 884 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  3. *
  4. * @author Alexander Rose <alexander.rose@weirdbyte.de>
  5. */
  6. export const lines_frag = `
  7. precision highp float;
  8. precision highp int;
  9. #include common
  10. #include common_frag_params
  11. #include color_frag_params
  12. #include common_clip
  13. void main(){
  14. #include clip_pixel
  15. float fragmentDepth = gl_FragCoord.z;
  16. #include assign_material_color
  17. #if defined(dRenderVariant_pick)
  18. #include check_picking_alpha
  19. gl_FragColor = material;
  20. #elif defined(dRenderVariant_depth)
  21. gl_FragColor = material;
  22. #elif defined(dRenderVariant_marking)
  23. gl_FragColor = material;
  24. #elif defined(dRenderVariant_color)
  25. gl_FragColor = material;
  26. #include apply_marker_color
  27. #include apply_fog
  28. #include wboit_write
  29. #endif
  30. }
  31. `;