DiscardColorTileImagePolicy

new Cesium.DiscardColorTileImagePolicy()

If the image pixel is larger than the value set by the transparency, the texture corresponding to the slice is not created, and the search for the available parent node is discarded.
See:

Methods

isReady()Boolean

Determines if the discard policy is ready to process images.
Returns:
True if the discard policy is ready to process images; otherwise, false.

shouldDiscardImage(image)Boolean

Given a tile image, decide whether to discard that image.
Name Type Description
image Image An image to test.
Returns:
True if the image should be discarded; otherwise, false.
Throws:
  • DeveloperError : shouldDiscardImage must not be called before the discard policy is ready.