X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Flighting.h;h=d4e6b5942cc09d660857d661b2b8bb700e4d71e4;hp=92a4bcf8d9478a93074bd318f03c1ad77e905a91;hb=5008778dbb1840bf7c6d479800d2b932f8386fb2;hpb=f3ee91e70df8a7fdc68f46427bf8a28f34f0cd24 diff --git a/source/materials/lighting.h b/source/materials/lighting.h index 92a4bcf8..d4e6b594 100644 --- a/source/materials/lighting.h +++ b/source/materials/lighting.h @@ -34,12 +34,8 @@ public: void fog_color(float, float, float); void fog_density(float); void fog_half_distance(float); - void horizon_angle(float); void light(const std::string &); void light_inline(); - void light_inline_index(unsigned); - void sky_color(float, float, float); - void zenith_direction(float, float, float); }; private: @@ -52,9 +48,6 @@ private: }; Color ambient; - Color sky_color; - Vector3 zenith_direction; - Geometry::Angle horizon_angle; Color fog_color; float fog_density; std::vector lights; @@ -68,17 +61,6 @@ public: const Color &get_ambient() const { return ambient; } - /** Sets the color of the sky at zenith. Has no effect without shaders. */ - DEPRECATED void set_sky_color(const Color &); - - /** Sets the direction of the zenith. Defaults to positive Z axis. Has no - effect without shaders. */ - DEPRECATED void set_zenith_direction(const Vector3 &); - - /** Sets the angle where skylight cuts off, counted from the true horizon. - Has no effect without shaders. */ - DEPRECATED void set_horizon_angle(const Geometry::Angle &); - /** Sets the fog color, which is blended into distant surfaces. */ void set_fog_color(const Color &); @@ -96,17 +78,6 @@ public: /** Detaches a light source. If the light was not attached, does nothing. */ void detach(const Light &); - DEPRECATED void attach(unsigned, const Light &l) { attach(l); } - DEPRECATED void detach(unsigned); - - /** Returns an attached light. If no light is attached at that index, null - is returned. */ - DEPRECATED const Light *get_attached_light(unsigned) const; - - /** Updates a ProgramData object with the uniforms for the Lighting, - including all attached light sources. A view matrix must be passed in. */ - DEPRECATED void update_shader_data(ProgramData &, const Matrix &) const; - const ProgramData &get_shader_data() const; void set_debug_name(const std::string &);