simplified shadow_cast_begin
@@ -44,13 +44,12 @@ impl DirectionalLight
pub fn shadow_cast_begin(&self)
{
- if let Some(ref rendertarget) = self.shadow_render_target
- {
+ let rendertarget = self.shadow_render_target.as_ref().unwrap();
+
use rendertarget::Rendertarget;
rendertarget.bind();
rendertarget.clear();
}
- }
pub fn shadow_camera(&self) -> &camera::ShadowCamera
{
