-----------------------------------------------------------------------------
| 1668 | } |
| 1669 | //----------------------------------------------------------------------------- |
| 1670 | void GLRenderSystem::_setDepthBufferParams(bool depthTest, bool depthWrite, CompareFunction depthFunction) |
| 1671 | { |
| 1672 | if (depthTest) |
| 1673 | { |
| 1674 | mStateCacheManager->setClearDepth(1.0f); |
| 1675 | } |
| 1676 | mStateCacheManager->setEnabled(GL_DEPTH_TEST, depthTest); |
| 1677 | mStateCacheManager->setDepthMask( depthWrite ); |
| 1678 | // Store for reference in _beginFrame |
| 1679 | mDepthWrite = depthWrite; |
| 1680 | mStateCacheManager->setDepthFunc(convertCompareFunction(depthFunction)); |
| 1681 | } |
| 1682 | //----------------------------------------------------------------------------- |
| 1683 | void GLRenderSystem::_setDepthBias(float constantBias, float slopeScaleBias) |
| 1684 | { |
no test coverage detected