prePassDeclaration.js 608 B

12345678910111213141516171819
  1. // Do not edit.
  2. import { ShaderStore } from "../../Engines/shaderStore.js";
  3. const name = "prePassDeclaration";
  4. const shader = `#ifdef PREPASS
  5. #extension GL_EXT_draw_buffers : require
  6. layout(location=0) out highp vec4 glFragData[{X}];highp vec4 gl_FragColor;
  7. #ifdef PREPASS_DEPTH
  8. varying highp vec3 vViewPos;
  9. #endif
  10. #ifdef PREPASS_VELOCITY
  11. varying highp vec4 vCurrentPosition;varying highp vec4 vPreviousPosition;
  12. #endif
  13. #endif
  14. `;
  15. // Sideeffect
  16. ShaderStore.IncludesShadersStore[name] = shader;
  17. /** @internal */
  18. export const prePassDeclaration = { name, shader };
  19. //# sourceMappingURL=prePassDeclaration.js.map