instancesDeclaration.js 943 B

12345678910111213141516171819202122232425262728293031
  1. // Do not edit.
  2. import { ShaderStore } from "../../Engines/shaderStore.js";
  3. const name = "instancesDeclaration";
  4. const shader = `#ifdef INSTANCES
  5. attribute vec4 world0;attribute vec4 world1;attribute vec4 world2;attribute vec4 world3;
  6. #ifdef INSTANCESCOLOR
  7. attribute vec4 instanceColor;
  8. #endif
  9. #if defined(THIN_INSTANCES) && !defined(WORLD_UBO)
  10. uniform mat4 world;
  11. #endif
  12. #if defined(VELOCITY) || defined(PREPASS_VELOCITY)
  13. attribute vec4 previousWorld0;attribute vec4 previousWorld1;attribute vec4 previousWorld2;attribute vec4 previousWorld3;
  14. #ifdef THIN_INSTANCES
  15. uniform mat4 previousWorld;
  16. #endif
  17. #endif
  18. #else
  19. #if !defined(WORLD_UBO)
  20. uniform mat4 world;
  21. #endif
  22. #if defined(VELOCITY) || defined(PREPASS_VELOCITY)
  23. uniform mat4 previousWorld;
  24. #endif
  25. #endif
  26. `;
  27. // Sideeffect
  28. ShaderStore.IncludesShadersStore[name] = shader;
  29. /** @internal */
  30. export const instancesDeclaration = { name, shader };
  31. //# sourceMappingURL=instancesDeclaration.js.map