shadows global switch

This commit is contained in:
2023-03-16 12:11:55 +03:00
parent 9e7afb5fb5
commit bddb288586
6 changed files with 116 additions and 89 deletions

View File

@@ -173,6 +173,8 @@ public:
void setSoftShadowsQuality(float s) { soft_shadows_quality = s; }
bool softShadows() const { return soft_shadows; }
void setSoftShadows(bool on) { soft_shadows = on; }
bool shadows() const { return shadows_; }
void setShadows(bool on) { shadows_ = on; }
GLfloat aspect, iaspect;
Renderer renderer_;
@@ -218,7 +220,7 @@ private:
bool fogEnabled_, lightEnabled_, FXAA_;
bool shaders_supported, shaders_bind;
bool hoverHalo_, selectionHalo_;
bool is_init, soft_shadows;
bool is_init, shadows_, soft_shadows;
private slots:
void __destroyed();