soft shadows fixes

This commit is contained in:
2023-02-23 11:03:20 +03:00
parent 52e9b19f37
commit 51562dec9d
7 changed files with 78 additions and 41 deletions

View File

@@ -63,6 +63,7 @@ class QGLENGINE_CORE_EXPORT QGLView
Q_PROPERTY(QSize textureMapSize READ textureMapSize WRITE setTextureMapSize)
Q_PROPERTY(QSize shadowMapSize READ shadowMapSize WRITE setShadowMapSize)
Q_PROPERTY(int softShadowsSamples READ softShadowsSamples WRITE setSoftShadowsSamples)
Q_PROPERTY(float softShadowsQuality READ softShadowsQuality WRITE setSoftShadowsQuality)
Q_PROPERTY(bool softShadows READ softShadows WRITE setSoftShadows)
public:
@@ -168,6 +169,8 @@ public:
int softShadowsSamples() const { return soft_shadows_samples; }
void setSoftShadowsSamples(int s) { soft_shadows_samples = s; }
float softShadowsQuality() const { return soft_shadows_quality; }
void setSoftShadowsQuality(float s) { soft_shadows_quality = s; }
bool softShadows() const { return soft_shadows; }
void setSoftShadows(bool on) { soft_shadows = on; }
@@ -208,7 +211,7 @@ private:
GLint max_anisotropic, max_texture_chanels;
RenderMode render_mode;
QSize prev_size, shadow_map_size;
float lineWidth_;
float lineWidth_, soft_shadows_quality;
float fps_, fps_tm, fogDensity_, fogDecay_;
float hoverHaloFill_, selectionHaloFill_, m_motionBlurFactor;
int timer, fps_cnt, sh_id_loc, soft_shadows_samples;