spot light map
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user