instancesVertex.js 818 B

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