Light.js 959 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. Together, <code>color</code> and <code>intensity</code> produce a high-dynamic-range light color. <code>intensity</code> can also be used individually to dim or brighten the light without changing the hue.
  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 controls the strength of the light. <code>intensity</code> has a minimum value of 0.0 and no maximum value.
  23. * @memberof Light.prototype
  24. * @type {number}
  25. */
  26. intensity: {
  27. get: DeveloperError.throwInstantiationError,
  28. },
  29. });
  30. export default Light;