I am rendering multiple terras adjacent to each other. However, when I create a terra there is a function,
Code: Select all
auto setupTerraShadows = [&]() {
mHlmsPbsTerraShadows = new Ogre::HlmsPbsTerraShadows();
mHlmsPbsTerraShadows->setTerra(mTerra);
//Set the PBS listener so regular objects also receive terrain shadows
Ogre::Hlms* hlmsPbs = root->getHlmsManager()->getHlms(Ogre::HLMS_PBS);
hlmsPbs->setListener(mHlmsPbsTerraShadows);
};
and this listener, I think, only works for one terra at a time? Is this the code I should be using for adjacent terras?