nvidia fix, soft shadows
This commit is contained in:
@@ -60,6 +60,10 @@ class QGLENGINE_CORE_EXPORT QGLView
|
||||
Q_PROPERTY(Qt::MouseButton selectionButton READ selectionButton WRITE setSelectionButton)
|
||||
Q_PROPERTY(Qt::KeyboardModifier selectionModifier READ selectionModifier WRITE setSelectionModifier)
|
||||
Q_PROPERTY(Scene::SelectionMode selectionMode READ selectionMode WRITE setSelectionMode)
|
||||
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(bool softShadows READ softShadows WRITE setSoftShadows)
|
||||
|
||||
public:
|
||||
QGLView();
|
||||
@@ -157,6 +161,16 @@ public:
|
||||
bool isGrabImage() const { return renderer_.isGrabImage(); }
|
||||
QImage getImage() const { return renderer_.getImage(); }
|
||||
|
||||
void setShadowMapSize(QSize sz);
|
||||
void setTextureMapSize(QSize sz);
|
||||
QSize shadowMapSize() const;
|
||||
QSize textureMapSize() const;
|
||||
|
||||
int softShadowsSamples() const { return soft_shadows_samples; }
|
||||
void setSoftShadowsSamples(int s) { soft_shadows_samples = s; }
|
||||
bool softShadows() const { return soft_shadows; }
|
||||
void setSoftShadows(bool on) { soft_shadows = on; }
|
||||
|
||||
GLfloat aspect, iaspect;
|
||||
Renderer renderer_;
|
||||
|
||||
@@ -197,11 +211,11 @@ private:
|
||||
float lineWidth_;
|
||||
float fps_, fps_tm, fogDensity_, fogDecay_;
|
||||
float hoverHaloFill_, selectionHaloFill_, m_motionBlurFactor;
|
||||
int timer, fps_cnt, sh_id_loc;
|
||||
int timer, fps_cnt, sh_id_loc, soft_shadows_samples;
|
||||
bool fogEnabled_, lightEnabled_, FXAA_;
|
||||
bool shaders_supported, shaders_bind;
|
||||
bool hoverHalo_, selectionHalo_;
|
||||
bool is_init;
|
||||
bool is_init, soft_shadows;
|
||||
|
||||
private slots:
|
||||
void __destroyed();
|
||||
|
||||
Reference in New Issue
Block a user