samplerVertexImplementation.js 1020 B

123456789101112131415161718192021222324252627282930313233
  1. // Do not edit.
  2. import { ShaderStore } from "../../Engines/shaderStore.js";
  3. const name = "samplerVertexImplementation";
  4. const shader = `#if defined(_DEFINENAME_) && _DEFINENAME_DIRECTUV==0
  5. if (v_INFONAME_==0.)
  6. {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uvUpdated,1.0,0.0));}
  7. #ifdef UV2
  8. else if (v_INFONAME_==1.)
  9. {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv2,1.0,0.0));}
  10. #endif
  11. #ifdef UV3
  12. else if (v_INFONAME_==2.)
  13. {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv3,1.0,0.0));}
  14. #endif
  15. #ifdef UV4
  16. else if (v_INFONAME_==3.)
  17. {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv4,1.0,0.0));}
  18. #endif
  19. #ifdef UV5
  20. else if (v_INFONAME_==4.)
  21. {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv5,1.0,0.0));}
  22. #endif
  23. #ifdef UV6
  24. else if (v_INFONAME_==5.)
  25. {v_VARYINGNAME_UV=vec2(_MATRIXNAME_Matrix*vec4(uv6,1.0,0.0));}
  26. #endif
  27. #endif
  28. `;
  29. // Sideeffect
  30. ShaderStore.IncludesShadersStore[name] = shader;
  31. /** @internal */
  32. export const samplerVertexImplementation = { name, shader };
  33. //# sourceMappingURL=samplerVertexImplementation.js.map