line.fragment.js 846 B

1234567891011121314151617181920212223242526
  1. // Do not edit.
  2. import { ShaderStore } from "../Engines/shaderStore.js";
  3. import "./ShadersInclude/clipPlaneFragmentDeclaration.js";
  4. import "./ShadersInclude/logDepthDeclaration.js";
  5. import "./ShadersInclude/logDepthFragment.js";
  6. import "./ShadersInclude/clipPlaneFragment.js";
  7. const name = "linePixelShader";
  8. const shader = `#include<clipPlaneFragmentDeclaration>
  9. uniform vec4 color;
  10. #ifdef LOGARITHMICDEPTH
  11. #extension GL_EXT_frag_depth : enable
  12. #endif
  13. #include<logDepthDeclaration>
  14. #define CUSTOM_FRAGMENT_DEFINITIONS
  15. void main(void) {
  16. #define CUSTOM_FRAGMENT_MAIN_BEGIN
  17. #include<logDepthFragment>
  18. #include<clipPlaneFragment>
  19. gl_FragColor=color;
  20. #define CUSTOM_FRAGMENT_MAIN_END
  21. }`;
  22. // Sideeffect
  23. ShaderStore.ShadersStore[name] = shader;
  24. /** @internal */
  25. export const linePixelShader = { name, shader };
  26. //# sourceMappingURL=line.fragment.js.map