mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Corrected celestical object sizes
This commit is contained in:
parent
9fa2dd5277
commit
39c7bc8363
1 changed files with 4 additions and 4 deletions
|
@ -57,7 +57,7 @@ BillboardObject::BillboardObject( const String& textureName,
|
||||||
mNode = rootNode->createChildSceneNode();
|
mNode = rootNode->createChildSceneNode();
|
||||||
mNode->setPosition(finalPosition);
|
mNode->setPosition(finalPosition);
|
||||||
mNode->attachObject(mEntity);
|
mNode->attachObject(mEntity);
|
||||||
mNode->setScale(Ogre::Vector3(550.f*initialSize));
|
mNode->setScale(Ogre::Vector3(450.f*initialSize));
|
||||||
mNode->setOrientation(Ogre::Vector3::UNIT_Z.getRotationTo(-position.normalisedCopy()));
|
mNode->setOrientation(Ogre::Vector3::UNIT_Z.getRotationTo(-position.normalisedCopy()));
|
||||||
|
|
||||||
sh::Factory::getInstance().getMaterialInstance ("BillboardMaterial"+StringConverter::toString(bodyCount))->setListener(this);
|
sh::Factory::getInstance().getMaterialInstance ("BillboardMaterial"+StringConverter::toString(bodyCount))->setListener(this);
|
||||||
|
@ -86,7 +86,7 @@ void BillboardObject::setVisible(const bool visible)
|
||||||
|
|
||||||
void BillboardObject::setSize(const float size)
|
void BillboardObject::setSize(const float size)
|
||||||
{
|
{
|
||||||
mNode->setScale(550.f*size, 550.f*size, 550.f*size);
|
mNode->setScale(450.f*size, 450.f*size, 450.f*size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BillboardObject::setVisibility(const float visibility)
|
void BillboardObject::setVisibility(const float visibility)
|
||||||
|
@ -267,11 +267,11 @@ void SkyManager::create()
|
||||||
mLightning->setDiffuseColour (ColourValue(3,3,3));
|
mLightning->setDiffuseColour (ColourValue(3,3,3));
|
||||||
|
|
||||||
const MWWorld::Fallback* fallback=MWBase::Environment::get().getWorld()->getFallback();
|
const MWWorld::Fallback* fallback=MWBase::Environment::get().getWorld()->getFallback();
|
||||||
mSecunda = new Moon("secunda_texture", /*0.5*/fallback->getFallbackFloat("Moons_Secunda_Size")/100, Vector3(-0.4, 0.4, 0.5), mRootNode, "openmw_moon");
|
mSecunda = new Moon("secunda_texture", fallback->getFallbackFloat("Moons_Secunda_Size")/100, Vector3(-0.4, 0.4, 0.5), mRootNode, "openmw_moon");
|
||||||
mSecunda->setType(Moon::Type_Secunda);
|
mSecunda->setType(Moon::Type_Secunda);
|
||||||
mSecunda->setRenderQueue(RQG_SkiesEarly+4);
|
mSecunda->setRenderQueue(RQG_SkiesEarly+4);
|
||||||
|
|
||||||
mMasser = new Moon("masser_texture", /*0.75*/fallback->getFallbackFloat("Moons_Masser_Size")/100, Vector3(-0.4, 0.4, 0.5), mRootNode, "openmw_moon");
|
mMasser = new Moon("masser_texture", fallback->getFallbackFloat("Moons_Masser_Size")/100, Vector3(-0.4, 0.4, 0.5), mRootNode, "openmw_moon");
|
||||||
mMasser->setRenderQueue(RQG_SkiesEarly+3);
|
mMasser->setRenderQueue(RQG_SkiesEarly+3);
|
||||||
mMasser->setType(Moon::Type_Masser);
|
mMasser->setType(Moon::Type_Masser);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue