mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-04 21:10:32 +00:00
remove stray methods.
revisit loadedstate shortcutting of already loaded textures
This commit is contained in:
parent
f709130e72
commit
a3d2d13d39
4 changed files with 19 additions and 65 deletions
|
|
@ -329,8 +329,8 @@ void VolumetricFog::handleResize(VolumetricFogRTManager *RTM, bool resize)
|
|||
|
||||
// load texture.
|
||||
getTexture();
|
||||
mTexScale.x = 2.0f - ((F32)mTextureAsset->getTextureWidth() / width);
|
||||
mTexScale.y = 2.0f - ((F32)mTextureAsset->getTextureHeight() / height);
|
||||
mTexScale.x = 2.0f - ((F32)mTextureAsset->getTextureBitmapWidth() / width);
|
||||
mTexScale.y = 2.0f - ((F32)mTextureAsset->getTextureBitmapHeight() / height);
|
||||
}
|
||||
|
||||
UpdateBuffers(0,true);
|
||||
|
|
@ -1228,8 +1228,8 @@ void VolumetricFog::InitTexture()
|
|||
F32 width = (F32)mPlatformWindow->getClientExtent().x;
|
||||
F32 height = (F32)mPlatformWindow->getClientExtent().y;
|
||||
|
||||
mTexScale.x = 2.0f - ((F32)mTextureAsset->getTextureWidth() / width);
|
||||
mTexScale.y = 2.0f - ((F32)mTextureAsset->getTextureHeight() / height);
|
||||
mTexScale.x = 2.0f - ((F32)mTextureAsset->getTextureBitmapWidth() / width);
|
||||
mTexScale.y = 2.0f - ((F32)mTextureAsset->getTextureBitmapHeight() / height);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue