oitDeclaration.js 620 B

12345678910111213141516
  1. // Do not edit.
  2. import { ShaderStore } from "../../Engines/shaderStore.js";
  3. const name = "oitDeclaration";
  4. const shader = `#ifdef ORDER_INDEPENDENT_TRANSPARENCY
  5. #extension GL_EXT_draw_buffers : require
  6. layout(location=0) out vec2 depth;
  7. layout(location=1) out vec4 frontColor;layout(location=2) out vec4 backColor;
  8. #define MAX_DEPTH 99999.0
  9. highp vec4 gl_FragColor;uniform sampler2D oitDepthSampler;uniform sampler2D oitFrontColorSampler;
  10. #endif
  11. `;
  12. // Sideeffect
  13. ShaderStore.IncludesShadersStore[name] = shader;
  14. /** @internal */
  15. export const oitDeclaration = { name, shader };
  16. //# sourceMappingURL=oitDeclaration.js.map