use super::state::MatState;
#[derive(Debug, Clone)]
pub struct LayerOrData {
pub or_state: MatState,
}
impl Default for LayerOrData {
fn default() -> Self {
Self {
or_state: MatState::default(),
}
}
}
#[derive(Debug, Clone)]
pub struct LayerDepthData {
pub depth_bias: f32,
}
impl Default for LayerDepthData {
fn default() -> Self {
Self { depth_bias: 0.0 }
}
}
#[derive(Debug, Clone)]
pub struct LayerShadowBaseData {
pub power: f32,
pub ambient: f32,
}
impl Default for LayerShadowBaseData {
fn default() -> Self {
Self {
power: 1.0,
ambient: 0.0,
}
}
}