DepthFunction

DepthFunction

Determines the function used to compare two depths for the depth test.

Members

staticconstantDepthFunction.ALWAYS :Number

0x207. The depth test always passes.

staticconstantDepthFunction.EQUAL :Number

0x202. The depth test passes if the incoming depth is equal to the stored depth.

staticconstantDepthFunction.GREATER :Number

0x204. The depth test passes if the incoming depth is greater than the stored depth.

staticconstantDepthFunction.GREATER_OR_EQUAL :Number

0x206. The depth test passes if the incoming depth is greater than or equal to the stored depth.

staticconstantDepthFunction.LESS :Number

0x201. The depth test passes if the incoming depth is less than the stored depth.

staticconstantDepthFunction.LESS_OR_EQUAL :Number

0x203. The depth test passes if the incoming depth is less than or equal to the stored depth.

staticconstantDepthFunction.NEVER :Number

0x200. The depth test never passes.

staticconstantDepthFunction.NOT_EQUAL :Number

0x0205. The depth test passes if the incoming depth is not equal to the stored depth.