X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fenvironmentmap.cpp;h=94ae5150a7aee552a12bf2519c44e8733e59cae0;hp=9ca4d45253580134e59a060a7936a9f04c6fbbf2;hb=6dc2da27f0831d4172fcfeba4900616fd6c844b8;hpb=0991ffd3091d4002fe6e2811219f3a4dae2c41d1 diff --git a/source/environmentmap.cpp b/source/environmentmap.cpp index 9ca4d452..94ae5150 100644 --- a/source/environmentmap.cpp +++ b/source/environmentmap.cpp @@ -47,7 +47,7 @@ void EnvironmentMap::setup_frame(Renderer &renderer) Renderer::Exclude exclude1(renderer, renderable); Renderer::Exclude exclude2(renderer, *this); - camera.set_position(*matrix*Vector3()); + camera.set_position(matrix->column(3).slice<3>(0)); BindRestore bind_fbo(fbo[0]); for(unsigned i=0; i<6; ++i)