DepthFunction

Determines the function used to compare two depths for the depth test.
Properties:
Name Type Description
NEVER Number The depth test never passes.
LESS Number The depth test passes if the incoming depth is less than the stored depth.
EQUAL Number The depth test passes if the incoming depth is equal to the stored depth.
LESS_OR_EQUAL Number The depth test passes if the incoming depth is less than or equal to the stored depth.
GREATER Number The depth test passes if the incoming depth is greater than the stored depth.
NOT_EQUAL Number The depth test passes if the incoming depth is not equal to the stored depth.
GREATER_OR_EQUAL Number The depth test passes if the incoming depth is greater than or equal to the stored depth.
ALWAYS Number The depth test always passes.

Members

static constant Cesium.DepthFunction.ALWAYS : Number

The depth test always passes.
Default Value: WebGLConstants.ALWAYS

static constant Cesium.DepthFunction.EQUAL : Number

The depth test passes if the incoming depth is equal to the stored depth.
Default Value: WebGLConstants.EQUAL

static constant Cesium.DepthFunction.GREATER : Number

The depth test passes if the incoming depth is greater than the stored depth.
Default Value: WebGLConstants.GREATER

static constant Cesium.DepthFunction.GREATER_OR_EQUAL : Number

The depth test passes if the incoming depth is greater than or equal to the stored depth.
Default Value: WebGLConstants.GEQUAL

static constant Cesium.DepthFunction.LESS : Number

The depth test passes if the incoming depth is less than the stored depth.
Default Value: WebGLConstants.LESS

static constant Cesium.DepthFunction.LESS_OR_EQUAL : Number

The depth test passes if the incoming depth is less than or equal to the stored depth.
Default Value: WebGLConstants.LEQUAL

static constant Cesium.DepthFunction.NEVER : Number

The depth test never passes.
Default Value: WebGLConstants.NEVER

static constant Cesium.DepthFunction.NOT_EQUAL : Number

The depth test passes if the incoming depth is not equal to the stored depth.
Default Value: WebGLConstants.NOTEQUAL