bumpVertex.js 640 B

1234567891011121314
  1. // Do not edit.
  2. import { ShaderStore } from "../../Engines/shaderStore.js";
  3. const name = "bumpVertex";
  4. const shader = `#if defined(BUMP) || defined(PARALLAX) || defined(CLEARCOAT_BUMP) || defined(ANISOTROPIC)
  5. #if defined(TANGENT) && defined(NORMAL)
  6. vec3 tbnNormal=normalize(normalUpdated);vec3 tbnTangent=normalize(tangentUpdated.xyz);vec3 tbnBitangent=cross(tbnNormal,tbnTangent)*tangentUpdated.w;vTBN=mat3(finalWorld)*mat3(tbnTangent,tbnBitangent,tbnNormal);
  7. #endif
  8. #endif
  9. `;
  10. // Sideeffect
  11. ShaderStore.IncludesShadersStore[name] = shader;
  12. /** @internal */
  13. export const bumpVertex = { name, shader };
  14. //# sourceMappingURL=bumpVertex.js.map