git-svn-id: svn://db.shs.com.ru/libs@688 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -233,15 +233,15 @@ void RendererBase::reloadLightsParameters(const QMap<int, QList<Light*>> & light
|
||||
if (l->light_type == Light::Omni)
|
||||
ang_start = ang_end = 180.;
|
||||
//qDebug() << "light" << light->name() << ulightn << pos;
|
||||
so.intensity = l->intensity;
|
||||
so.startAngle = ang_start;
|
||||
so.startAngleCos = cos(ang_start * deg2rad);
|
||||
so.endAngle = ang_end;
|
||||
so.endAngleCos = cos(ang_end * deg2rad);
|
||||
so.color = QColor2QVector(l->color_);
|
||||
so.constantAttenuation = l->decay_const;
|
||||
so.linearAttenuation = l->decay_linear;
|
||||
so.quadraticAttenuation = l->decay_quadratic;
|
||||
so.angles[0] = ang_start;
|
||||
so.angles[1] = cos(ang_start * deg2rad);
|
||||
so.angles[2] = ang_end;
|
||||
so.angles[3] = cos(ang_end * deg2rad);
|
||||
so.decay_intensity[0] = l->decay_const;
|
||||
so.decay_intensity[1] = l->decay_linear;
|
||||
so.decay_intensity[2] = l->decay_quadratic;
|
||||
so.decay_intensity[3] = l->intensity;
|
||||
//so.shadow = shadow;
|
||||
//so.shadowColor = shadow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user