before shadow2DArray try
This commit is contained in:
@@ -634,6 +634,7 @@ ObjectBase * Light::clone(bool withChildren) {
|
||||
o->decay_linear = decay_linear;
|
||||
o->decay_quadratic = decay_quadratic;
|
||||
o->meta = meta;
|
||||
o->shadow_map.reinit();
|
||||
return o;
|
||||
}
|
||||
|
||||
|
||||
@@ -113,6 +113,10 @@ void Scene::reinitAll() {
|
||||
i->reinit();
|
||||
for (auto * i: td_geometries)
|
||||
i->reinit();
|
||||
auto aol = root_->children(true);
|
||||
for (auto * i: aol) {
|
||||
if (i->type() == ObjectBase::glLight) ((Light *)i)->shadow_map.reinit();
|
||||
}
|
||||
setTreeChanged();
|
||||
mat_changed = lights_changed = true;
|
||||
need_reload_materials = true;
|
||||
|
||||
Reference in New Issue
Block a user