From: Mikko Rasa Date: Tue, 23 Jul 2019 07:04:00 +0000 (+0300) Subject: Allow access to ShadowMap's texture and matrix from outside X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c3b339da673601c283abf9222b5e8f66ba80a688;p=libs%2Fgl.git Allow access to ShadowMap's texture and matrix from outside This is necessary if a postprocessor wants to access the shadow map for deferred shading. --- diff --git a/source/shadowmap.h b/source/shadowmap.h index c2c104ac..fe36fca0 100644 --- a/source/shadowmap.h +++ b/source/shadowmap.h @@ -52,6 +52,9 @@ public: thin objects from casting shadows on nearby sufraces. */ void set_depth_bias(float); + const Texture2D &get_depth_texture() const { return depth_buf; } + const Matrix &get_shadow_matrix() const { return shadow_matrix; } + virtual void setup_frame(Renderer &); virtual void finish_frame();