X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Flighting.cpp;h=a927d622fade9b0c81a916f51ef31bce079bf825;hb=0071618b8eb3553948a2601b6f9e28bd7d2cd817;hp=d1fd9a70ffc0febe50bd9335b753c87418e32549;hpb=9dc2c20e8c7ac91d932b12492591b65786e24b0f;p=libs%2Fgl.git diff --git a/source/lighting.cpp b/source/lighting.cpp index d1fd9a70..a927d622 100644 --- a/source/lighting.cpp +++ b/source/lighting.cpp @@ -58,11 +58,16 @@ void Lighting::detach(unsigned i) Light::unbind_from(i); } +const Light *Lighting::get_attached_light(unsigned i) const +{ + return i(0, 0)*sky_direction); shdata.uniform("horizon_limit", horizon_angle.radians()); for(unsigned i=0; i