ModelAlphaOptions.js 654 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * Options for configuring the {@link AlphaPipelineStage}
  3. *
  4. * @alias ModelAlphaOptions
  5. * @constructor
  6. *
  7. * @private
  8. */
  9. export default function ModelAlphaOptions() {
  10. /**
  11. * Which render pass will render the model.
  12. *
  13. * @type {Pass}
  14. * @private
  15. */
  16. this.pass = undefined;
  17. /**
  18. * Which method to use for handling the alpha channel in the fragment shader.
  19. *
  20. * @type {AlphaMode}
  21. * @private
  22. */
  23. this.alphaMode = undefined;
  24. /**
  25. * When the alpha mode is MASK, this determines the alpha threshold
  26. * below which fragments are discarded
  27. *
  28. * @type {Number}
  29. * @private
  30. */
  31. this.alphaCutoff = undefined;
  32. }