multimaterial support, "preset"
each preset contains visibility, flags and material
This commit is contained in:
@@ -247,7 +247,7 @@ void RendererBase::reloadLightsParameters(const QMap<int, QList<Light *>> & ligh
|
||||
so.decay_intensity[2] = l->decay_quadratic;
|
||||
so.decay_intensity[3] = l->intensity;
|
||||
so.size = l->size;
|
||||
so.flags = l->cast_shadow ? 1 : 0;
|
||||
so.flags = l->isCastShadows() ? 1 : 0;
|
||||
if (l->light_type == Light::Cone) l->light_map.copyToQGLMap(so.map);
|
||||
}
|
||||
buffer_lights.bind(view);
|
||||
|
||||
Reference in New Issue
Block a user