Add missing visibility flags

This commit is contained in:
scrawl 2014-06-29 15:39:11 +02:00
parent 1de406cb6d
commit 5ec96c5394

View file

@ -64,6 +64,8 @@ void TerrainGrid::loadCell(int x, int y)
element.mChunk = new Terrain::Chunk(mCache.getUVBuffer(), bounds, positions, normals, colours);
element.mChunk->setIndexBuffer(mCache.getIndexBuffer(0));
element.mChunk->setVisibilityFlags(mVisibilityFlags);
element.mChunk->setCastShadows(true);
std::vector<Ogre::PixelBox> blendmaps;
std::vector<Terrain::LayerInfo> layerList;