git-svn-id: svn://db.shs.com.ru/libs@52 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -103,6 +103,10 @@ MainWindow::MainWindow(QWidget * parent): QMainWindow(parent), Ui::MainWindow()
|
||||
view->camera().flyToDistance(500);
|
||||
//view->camera().setMode(Camera::AimMatrix);
|
||||
Light * l = new Light(view->camera().pos());
|
||||
l->light_type = Light::Cone;
|
||||
l->direction = QVector3D(1., 0.2, -0.2);
|
||||
l->angle_start = 0.;
|
||||
l->angle_end = 120.;
|
||||
l->intensity = 1.;
|
||||
//l->decay_linear = 0.2;
|
||||
l->setName("camera");
|
||||
|
||||
Reference in New Issue
Block a user