git-svn-id: svn://db.shs.com.ru/libs@638 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -260,7 +260,7 @@ void RendererBase::reloadLightsPositions(Camera * cam) {
|
||||
QMatrix4x4 m = mat * l->worldTransform();
|
||||
QVector4D pos(0, 0, 0, 1.), dir(l->direction(), 1);//, dir0(light->dir0), dir1(light->dir1);
|
||||
pos = m * pos;
|
||||
dir = ((m * dir) - pos).normalized();
|
||||
dir = (m * QVector4D(l->direction(),0)).normalized();//((m * dir) - pos).normalized();
|
||||
so.position = pos;
|
||||
so.direction = dir;
|
||||
//so.shadowMatrix = l->shadow_matrix;
|
||||
|
||||
Reference in New Issue
Block a user