spot light map

This commit is contained in:
2023-02-14 10:43:51 +03:00
parent 36540468dc
commit 12695983d2
13 changed files with 119 additions and 62 deletions

View File

@@ -675,7 +675,8 @@ QDataStream & operator<<(QDataStream & s, const ObjectBase * p) {
.add(108, l->decay_end)
.add(109, int(l->light_type))
.add(111, l->distance())
.add(112, l->size);
.add(112, l->size)
.add(113, l->light_map);
}
if (p->type_ == ObjectBase::glCamera) {
// qDebug() << "place camera ...";
@@ -797,6 +798,9 @@ QDataStream & operator>>(QDataStream & s, ObjectBase *& p) {
case 112:
if (l) l->size = cs.getData<double>();
break;
case 113:
if (l) l->light_map = cs.getData<Map>();
break;
case 200:
if (c) c->setAim(cs.getData<QVector3D>());
break;