| 1612 | } |
| 1613 | |
| 1614 | void PostEffect::reload() |
| 1615 | { |
| 1616 | // Reload the shader if we have one or mark it |
| 1617 | // for updating when its processed next. |
| 1618 | if ( mShader ) |
| 1619 | mShader->reload(); |
| 1620 | else |
| 1621 | mUpdateShader = true; |
| 1622 | |
| 1623 | // Null stateblock so it is reloaded. |
| 1624 | mStateBlock = NULL; |
| 1625 | |
| 1626 | // Call reload on any children |
| 1627 | // this PostEffect may have. |
| 1628 | for ( U32 i = 0; i < size(); i++ ) |
| 1629 | { |
| 1630 | PostEffect *effect = (PostEffect*)(*this)[i]; |
| 1631 | effect->reload(); |
| 1632 | } |
| 1633 | } |
| 1634 | |
| 1635 | void PostEffect::setTexture( U32 index, const String &texFilePath ) |
| 1636 | { |