cone shadows done

This commit is contained in:
2023-02-12 21:27:04 +03:00
parent 728c4a85ed
commit e3389bcc20
11 changed files with 142 additions and 88 deletions

View File

@@ -85,7 +85,7 @@ public:
bool isReceiveShadows() const { return rec_shadow; }
bool isCastShadows() const { return cast_shadow; }
void setReceiveShadows(bool on) { rec_shadow = on; }
void setCastShadows(bool on) { cast_shadow = on; }
void setCastShadows(bool on);
void move(const QVector3D & dv) {
trans.setTranslation(pos() + dv);
@@ -398,8 +398,7 @@ public:
Directional
};
Light();
Light(const QVector3D & p, const QColor & c = Qt::white, float i = 1.);
Light(const QVector3D & p = QVector3D(), const QColor & c = Qt::white, float i = 1.);
virtual ObjectBase * clone(bool withChildren = true);
virtual void init() {
shadow_map.resize(512, 512);