defaultVertexDeclaration.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Do not edit.
  2. import { ShaderStore } from "../../Engines/shaderStore.js";
  3. import "./decalVertexDeclaration.js";
  4. const name = "defaultVertexDeclaration";
  5. const shader = `uniform mat4 viewProjection;uniform mat4 view;
  6. #ifdef DIFFUSE
  7. uniform mat4 diffuseMatrix;uniform vec2 vDiffuseInfos;
  8. #endif
  9. #ifdef AMBIENT
  10. uniform mat4 ambientMatrix;uniform vec2 vAmbientInfos;
  11. #endif
  12. #ifdef OPACITY
  13. uniform mat4 opacityMatrix;uniform vec2 vOpacityInfos;
  14. #endif
  15. #ifdef EMISSIVE
  16. uniform vec2 vEmissiveInfos;uniform mat4 emissiveMatrix;
  17. #endif
  18. #ifdef LIGHTMAP
  19. uniform vec2 vLightmapInfos;uniform mat4 lightmapMatrix;
  20. #endif
  21. #if defined(SPECULAR) && defined(SPECULARTERM)
  22. uniform vec2 vSpecularInfos;uniform mat4 specularMatrix;
  23. #endif
  24. #ifdef BUMP
  25. uniform vec3 vBumpInfos;uniform mat4 bumpMatrix;
  26. #endif
  27. #ifdef REFLECTION
  28. uniform mat4 reflectionMatrix;
  29. #endif
  30. #ifdef POINTSIZE
  31. uniform float pointSize;
  32. #endif
  33. #ifdef DETAIL
  34. uniform vec4 vDetailInfos;uniform mat4 detailMatrix;
  35. #endif
  36. #include<decalVertexDeclaration>
  37. #define ADDITIONAL_VERTEX_DECLARATION
  38. `;
  39. // Sideeffect
  40. ShaderStore.IncludesShadersStore[name] = shader;
  41. /** @internal */
  42. export const defaultVertexDeclaration = { name, shader };
  43. //# sourceMappingURL=defaultVertexDeclaration.js.map