| 329 | } |
| 330 | |
| 331 | void ClippingNode::setAlphaThreshold(float alphaThreshold) |
| 332 | { |
| 333 | if (alphaThreshold == 1 && alphaThreshold != _stencilStateManager->getAlphaThreshold()) |
| 334 | { |
| 335 | // should reset program used by _stencil |
| 336 | if (_stencil) |
| 337 | restoreAllProgramStates(); |
| 338 | } |
| 339 | _stencilStateManager->setAlphaThreshold(alphaThreshold); |
| 340 | } |
| 341 | |
| 342 | bool ClippingNode::isInverted() const |
| 343 | { |