- /** Sets the texture unit to bind the shadow map to during the rendering
- phase. Provided to shaders through the shadow and shadow_unit uniforms.
- The default is texture unit 3. */
- void set_texture_unit(unsigned);
+ const Texture2D &get_depth_texture() const { return depth_buf; }
+ const Matrix &get_shadow_matrix() const { return shadow_matrix; }