| 1633 | } |
| 1634 | |
| 1635 | void PostEffect::setTexture( U32 index, const String &texFilePath ) |
| 1636 | { |
| 1637 | // Set the new texture name. |
| 1638 | mTextureName[index] = texFilePath; |
| 1639 | mTexture[index].free(); |
| 1640 | |
| 1641 | // Skip empty stages or ones with variable or target names. |
| 1642 | if ( texFilePath.isEmpty() || |
| 1643 | texFilePath[0] == '$' || |
| 1644 | texFilePath[0] == '#' ) |
| 1645 | return; |
| 1646 | |
| 1647 | mTextureProfile[index] = (mTexSRGB[index])? &PostFxTextureSRGBProfile : &PostFxTextureProfile; |
| 1648 | _setTexture(texFilePath, index); |
| 1649 | |
| 1650 | mTextureType[index] = NormalTextureType; |
| 1651 | } |
| 1652 | |
| 1653 | void PostEffect::setTexture(U32 index, const GFXTexHandle& texHandle) |
| 1654 | { |
no test coverage detected