X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterials%2Flighting.cpp;fp=source%2Fmaterials%2Flighting.cpp;h=70b819cec8c3101b5379f1cb26b284e4a5d8bd98;hb=82282de52e8e8f3bbafefaf92bf76f53f2c2495e;hp=1f1c66d9b172aa41e7bf3d23674f0646962829d3;hpb=7302c50728ea317bcabe2d243af6b9142aac4ccd;p=libs%2Fgl.git diff --git a/source/materials/lighting.cpp b/source/materials/lighting.cpp index 1f1c66d9..70b819ce 100644 --- a/source/materials/lighting.cpp +++ b/source/materials/lighting.cpp @@ -94,14 +94,11 @@ void Lighting::update_shader_data(ProgramData &shdata, const Matrix &view_matrix { shdata.uniform("ambient_color", ambient); shdata.uniform("sky_color", sky_color); - shdata.uniform("eye_zenith_dir", view_matrix.block<3, 3>(0, 0)*zenith_direction); + shdata.uniform("world_zenith_dir", zenith_direction); shdata.uniform("horizon_limit", horizon_angle.radians()); shdata.uniform("fog_color", fog_color); shdata.uniform("fog_density", fog_density); - // For backwards compatibility - shdata.uniform("eye_sky_dir", view_matrix.block<3, 3>(0, 0)*zenith_direction); - for(unsigned i=0; iupdate_shader_data(shdata, view_matrix, i);