Light.js 659 B

12345678910111213141516171819202122232425262728293031323334
  1. import DeveloperError from "../Core/DeveloperError.js";
  2. /**
  3. * A light source. This type describes an interface and is not intended to be instantiated directly.
  4. *
  5. * @alias Light
  6. * @constructor
  7. *
  8. * @see DirectionalLight
  9. * @see SunLight
  10. */
  11. function Light() {}
  12. Object.defineProperties(Light.prototype, {
  13. /**
  14. * The color of the light.
  15. * @memberof Light.prototype
  16. * @type {Color}
  17. */
  18. color: {
  19. get: DeveloperError.throwInstantiationError,
  20. },
  21. /**
  22. * The intensity of the light.
  23. * @memberof Light.prototype
  24. * @type {Number}
  25. */
  26. intensity: {
  27. get: DeveloperError.throwInstantiationError,
  28. },
  29. });
  30. export default Light;