Pass.js 748 B

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