Pass.js 930 B

12345678910111213141516171819202122232425262728
  1. import freezeObject from '../Core/freezeObject.js';
  2. /**
  3. * The render pass for a command.
  4. *
  5. * @private
  6. */
  7. var Pass = {
  8. // If you add/modify/remove Pass constants, also change the automatic GLSL constants
  9. // that start with 'czm_pass'
  10. //
  11. // Commands are executed in order by pass up to the translucent pass.
  12. // Translucent geometry needs special handling (sorting/OIT). The compute pass
  13. // is executed first and the overlay pass is executed last. Both are not sorted
  14. // by frustum.
  15. ENVIRONMENT : 0,
  16. COMPUTE : 1,
  17. GLOBE : 2,
  18. TERRAIN_CLASSIFICATION : 3,
  19. CESIUM_3D_TILE : 4,
  20. CESIUM_3D_TILE_CLASSIFICATION : 5,
  21. CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW : 6,
  22. OPAQUE : 7,
  23. TRANSLUCENT : 8,
  24. OVERLAY : 9,
  25. NUMBER_OF_PASSES : 10
  26. };
  27. export default freezeObject(Pass);