X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Flight.h;h=d4b66077928188076b44974d6eaf6c36d4e2ccc2;hp=d097d04ae435157ebb1c4ddd18cc2bd5857d37d0;hb=a266f0f915827b20591f6244ccc36129e844f408;hpb=a6923e6315d5b91a0641dfcde653a897e8afeb1f diff --git a/source/materials/light.h b/source/materials/light.h index d097d04a..d4b66077 100644 --- a/source/materials/light.h +++ b/source/materials/light.h @@ -44,6 +44,7 @@ public: private: Color color; + Color transmittance; Vector4 position; Vector3 spot_dir; Vector3 direction; @@ -62,7 +63,12 @@ public: to shaders as light_sources[i].color. */ void set_color(const Color &); + /** Sets a multiplier on how much light actually reaches the target. Used + when modeling an atmosphere. */ + void set_transmittance(const Color &); + const Color &get_color() const { return color; } + const Color &get_transmittance() const { return transmittance; } DEPRECATED void set_diffuse(const Color &c) { set_color(c); } DEPRECATED void set_specular(const Color &) { }