X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Flighting.cpp;fp=source%2Fmaterials%2Flighting.cpp;h=fa0c26b41bfa815abe6902394e505cf474c3276c;hp=eeb4f30ee8e4ca0796ded102bfaf44049f1063c5;hb=aeef1c75d50f39bf57c3e608bbe41005479c44da;hpb=27a3dcc73777bcc53f93eaf66e90370b061d3988 diff --git a/source/materials/lighting.cpp b/source/materials/lighting.cpp index eeb4f30e..fa0c26b4 100644 --- a/source/materials/lighting.cpp +++ b/source/materials/lighting.cpp @@ -102,8 +102,15 @@ void Lighting::update_shader_data(ProgramData &shdata, const Matrix &view_matrix } +DataFile::Loader::ActionMap Lighting::Loader::shared_actions; + Lighting::Loader::Loader(Lighting &l): DataFile::ObjectLoader(l) +{ + set_actions(shared_actions); +} + +void Lighting::Loader::init_actions() { add("ambient", &Loader::ambient); add("fog_color", &Loader::fog_color);