X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Flayout.cpp;h=59a23c935aab6be2f3e41c5e53c4e383e3975f14;hb=b28062f2dc88e082ee5a28b2e1f7c4c8bd989023;hp=72e5052e6689c5f2058b83b5d9e03c75098bf895;hpb=5116fff210cdc3f0fbdae13046cc60450aad5e8f;p=r2c2.git diff --git a/source/3d/layout.cpp b/source/3d/layout.cpp index 72e5052..59a23c9 100644 --- a/source/3d/layout.cpp +++ b/source/3d/layout.cpp @@ -16,6 +16,8 @@ Layout3D::Layout3D(Layout &l): { // South, 15° from zenith sun.set_position(0, -0.259, 0.966, 0); + sun.set_diffuse(GL::Color(0.9)); + lighting.set_ambient(GL::Color(0.4)); lighting.attach(0, sun); layout.signal_object_added.connect(sigc::mem_fun(this, &Layout3D::object_added)); @@ -50,7 +52,7 @@ void Layout3D::add(Object3D &o) insert_unique(objects, &o.get_object(), &o); } -Object3D &Layout3D::get(Object &o) const +Object3D &Layout3D::get_3d(Object &o) const { return *get_item(objects, &o); }