1 2 3 4 5 6 7 8 9 10
use glin; use super::ShadowMap; /// Common trait to all lights pub trait Light { fn ty(&self) -> &str; fn uniforms(&self, shadow_map_idx_offset: &mut usize) -> Vec<glin::program::Uniform>; fn shadow_maps(&self) -> Vec<&dyn ShadowMap>; }