mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 07:06:45 +00:00
Merge branch 'patch-1' into 'master'
force static data variance for water geometry See merge request OpenMW/openmw!294
This commit is contained in:
commit
ffed6acc49
1 changed files with 1 additions and 0 deletions
|
@ -443,6 +443,7 @@ Water::Water(osg::Group *parent, osg::Group* sceneRoot, Resource::ResourceSystem
|
|||
mWaterGeom = SceneUtil::createWaterGeometry(Constants::CellSizeInUnits*150, 40, 900);
|
||||
mWaterGeom->setDrawCallback(new DepthClampCallback);
|
||||
mWaterGeom->setNodeMask(Mask_Water);
|
||||
mWaterGeom->setDataVariance(osg::Object::STATIC);
|
||||
|
||||
mWaterNode = new osg::PositionAttitudeTransform;
|
||||
mWaterNode->setName("Water Root");
|
||||
|
|
Loading…
Reference in a new issue