FrustumCommands.js 738 B

1234567891011121314151617181920212223242526
  1. /*global define*/
  2. define([
  3. '../Core/defaultValue'
  4. ], function(
  5. defaultValue) {
  6. "use strict";
  7. /**
  8. * Defines a list of commands whose geometry are bound by near and far distances from the camera.
  9. * @alias FrustumCommands
  10. * @constructor
  11. *
  12. * @param {Number} [near=0.0] The lower bound or closest distance from the camera.
  13. * @param {Number} [far=0.0] The upper bound or farthest distance from the camera.
  14. *
  15. * @private
  16. */
  17. var FrustumCommands = function(near, far) {
  18. this.near = defaultValue(near, 0.0);
  19. this.far = defaultValue(far, 0.0);
  20. this.opaqueCommands = [];
  21. this.translucentCommands = [];
  22. };
  23. return FrustumCommands;
  24. });