12345678910111213141516171819202122232425262728293031 |
- // Do not edit.
- import { ShaderStore } from "../../Engines/shaderStore.js";
- const name = "instancesDeclaration";
- const shader = `#ifdef INSTANCES
- attribute vec4 world0;attribute vec4 world1;attribute vec4 world2;attribute vec4 world3;
- #ifdef INSTANCESCOLOR
- attribute vec4 instanceColor;
- #endif
- #if defined(THIN_INSTANCES) && !defined(WORLD_UBO)
- uniform mat4 world;
- #endif
- #if defined(VELOCITY) || defined(PREPASS_VELOCITY)
- attribute vec4 previousWorld0;attribute vec4 previousWorld1;attribute vec4 previousWorld2;attribute vec4 previousWorld3;
- #ifdef THIN_INSTANCES
- uniform mat4 previousWorld;
- #endif
- #endif
- #else
- #if !defined(WORLD_UBO)
- uniform mat4 world;
- #endif
- #if defined(VELOCITY) || defined(PREPASS_VELOCITY)
- uniform mat4 previousWorld;
- #endif
- #endif
- `;
- // Sideeffect
- ShaderStore.IncludesShadersStore[name] = shader;
- /** @internal */
- export const instancesDeclaration = { name, shader };
- //# sourceMappingURL=instancesDeclaration.js.map
|