lightVxFragmentDeclaration.js 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. // Do not edit.
  2. import { ShaderStore } from "../../Engines/shaderStore.js";
  3. const name = "lightVxFragmentDeclaration";
  4. const shader = `#ifdef LIGHT{X}
  5. uniform vec4 vLightData{X};uniform vec4 vLightDiffuse{X};
  6. #ifdef SPECULARTERM
  7. uniform vec4 vLightSpecular{X};
  8. #else
  9. vec4 vLightSpecular{X}=vec4(0.);
  10. #endif
  11. #ifdef SHADOW{X}
  12. #ifdef SHADOWCSM{X}
  13. uniform mat4 lightMatrix{X}[SHADOWCSMNUM_CASCADES{X}];varying vec4 vPositionFromLight{X}[SHADOWCSMNUM_CASCADES{X}];varying float vDepthMetric{X}[SHADOWCSMNUM_CASCADES{X}];varying vec4 vPositionFromCamera{X};
  14. #elif defined(SHADOWCUBE{X})
  15. #else
  16. varying vec4 vPositionFromLight{X};varying float vDepthMetric{X};uniform mat4 lightMatrix{X};
  17. #endif
  18. uniform vec4 shadowsInfo{X};uniform vec2 depthValues{X};
  19. #endif
  20. #ifdef SPOTLIGHT{X}
  21. uniform vec4 vLightDirection{X};uniform vec4 vLightFalloff{X};
  22. #elif defined(POINTLIGHT{X})
  23. uniform vec4 vLightFalloff{X};
  24. #elif defined(HEMILIGHT{X})
  25. uniform vec3 vLightGround{X};
  26. #endif
  27. #endif
  28. `;
  29. // Sideeffect
  30. ShaderStore.IncludesShadersStore[name] = shader;
  31. /** @internal */
  32. export const lightVxFragmentDeclaration = { name, shader };
  33. //# sourceMappingURL=lightVxFragmentDeclaration.js.map