mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-22 23:23:53 +00:00
Fixing water <-> waterfall blending issues (Sort of... the second part will follow later)
This commit is contained in:
parent
bd8d793fec
commit
b8c6f6640b
1 changed files with 4 additions and 1 deletions
|
@ -48,7 +48,6 @@ Water::Water (Ogre::Camera *camera, RenderingManager* rend, const ESM::Cell* cel
|
|||
|
||||
mWater = mSceneManager->createEntity("water");
|
||||
mWater->setVisibilityFlags(RV_Water);
|
||||
mWater->setRenderQueueGroup(RQG_Water);
|
||||
mWater->setCastShadows(false);
|
||||
|
||||
mWaterNode = mSceneManager->getRootSceneNode()->createChildSceneNode();
|
||||
|
@ -324,7 +323,11 @@ void Water::applyRTT()
|
|||
mReflectionTarget = rtt;
|
||||
|
||||
sh::Factory::getInstance ().setTextureAlias ("WaterReflection", mReflectionTexture->getName());
|
||||
|
||||
mWater->setRenderQueueGroup(RQG_Water);
|
||||
}
|
||||
else
|
||||
mWater->setRenderQueueGroup(RQG_Alpha);
|
||||
}
|
||||
|
||||
void Water::applyVisibilityMask()
|
||||
|
|
Loading…
Reference in a new issue