PostProcessStageSampleMode.js 592 B

1234567891011121314151617181920212223
  1. /**
  2. * Determines how input texture to a {@link PostProcessStage} is sampled.
  3. *
  4. * @exports PostProcessStageSampleMode
  5. */
  6. var PostProcessStageSampleMode = {
  7. /**
  8. * Samples the texture by returning the closest texel.
  9. *
  10. * @type {Number}
  11. * @constant
  12. */
  13. NEAREST : 0,
  14. /**
  15. * Samples the texture through bi-linear interpolation of the four nearest texels.
  16. *
  17. * @type {Number}
  18. * @constant
  19. */
  20. LINEAR : 1
  21. };
  22. export default PostProcessStageSampleMode;