| 316 | } |
| 317 | |
| 318 | void VolumetricFog::handleResize(VolumetricFogRTManager *RTM, bool resize) |
| 319 | { |
| 320 | if (resize) |
| 321 | { |
| 322 | mResizing = true; |
| 323 | RTM->FogAnswered(); |
| 324 | } |
| 325 | else |
| 326 | mResizing = false; |
| 327 | |
| 328 | if (mIsTextured) |
| 329 | { |
| 330 | F32 width = (F32)mPlatformWindow->getClientExtent().x; |
| 331 | F32 height = (F32)mPlatformWindow->getClientExtent().y; |
| 332 | |
| 333 | mTexScale.x = 2.0f - ((F32)mTexture.getWidth() / width); |
| 334 | mTexScale.y = 2.0f - ((F32)mTexture.getHeight() / height); |
| 335 | } |
| 336 | |
| 337 | UpdateBuffers(0,true); |
| 338 | } |
| 339 | |
| 340 | //----------------------------------------------------------------------------- |
| 341 | // Loadshape extracted from TSMesh and TSShapeInstance |
nothing calls this directly
no test coverage detected