Fixed top-down render preview in render form
This commit is contained in:
parent
6436428eeb
commit
051766d1d5
3 changed files with 17 additions and 3 deletions
|
@ -38,6 +38,20 @@ void Scenery::load(PackStream* stream)
|
||||||
validate();
|
validate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Scenery::copy(BaseDefinition *destination_) const
|
||||||
|
{
|
||||||
|
Scenery* destination = (Scenery*)destination_;
|
||||||
|
|
||||||
|
atmosphere->copy(destination->atmosphere);
|
||||||
|
camera->copy(destination->camera);
|
||||||
|
clouds->copy(destination->clouds);
|
||||||
|
terrain->copy(destination->terrain);
|
||||||
|
textures->copy(destination->textures);
|
||||||
|
water->copy(destination->water);
|
||||||
|
|
||||||
|
destination->validate();
|
||||||
|
}
|
||||||
|
|
||||||
void Scenery::validate()
|
void Scenery::validate()
|
||||||
{
|
{
|
||||||
BaseDefinition::validate();
|
BaseDefinition::validate();
|
||||||
|
|
|
@ -22,6 +22,8 @@ public:
|
||||||
virtual void load(PackStream* stream) override;
|
virtual void load(PackStream* stream) override;
|
||||||
|
|
||||||
virtual void validate() override;
|
virtual void validate() override;
|
||||||
|
virtual void copy(BaseDefinition *destination) const override;
|
||||||
|
|
||||||
virtual Scenery* getScenery() override;
|
virtual Scenery* getScenery() override;
|
||||||
|
|
||||||
void autoPreset(int seed);
|
void autoPreset(int seed);
|
||||||
|
|
|
@ -70,8 +70,6 @@ protected:
|
||||||
CloudsRendererClass.bind(_renderer, _no_clouds);
|
CloudsRendererClass.bind(_renderer, _no_clouds);
|
||||||
}
|
}
|
||||||
|
|
||||||
_renderer->prepare();
|
|
||||||
|
|
||||||
_renderer->atmosphere->applyAerialPerspective = _applyAerialPerspective;
|
_renderer->atmosphere->applyAerialPerspective = _applyAerialPerspective;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,7 +83,7 @@ protected:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Renderer* _renderer;
|
SoftwareRenderer* _renderer;
|
||||||
bool _clouds_enabled;
|
bool _clouds_enabled;
|
||||||
CloudsDefinition* _no_clouds;
|
CloudsDefinition* _no_clouds;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue