pub struct DirectionalLightBuilder {
pub position: Option<[f32; 3]>,
pub color: Option<&'static str>,
pub intensity: Option<f32>,
pub cast_shadow: Option<bool>,
pub children: Option<Vec<NodeBlueprint>>,
pub __strata_key: Option<String>,
}Fields§
§position: Option<[f32; 3]>§color: Option<&'static str>§intensity: Option<f32>§cast_shadow: Option<bool>§children: Option<Vec<NodeBlueprint>>§__strata_key: Option<String>Implementations§
Source§impl DirectionalLightBuilder
impl DirectionalLightBuilder
pub fn position(self, val: impl Into<Option<[f32; 3]>>) -> Self
pub fn color(self, val: impl Into<Option<&'static str>>) -> Self
pub fn intensity(self, val: impl Into<Option<f32>>) -> Self
pub fn cast_shadow(self, val: impl Into<Option<bool>>) -> Self
pub fn children(self, children: Vec<NodeBlueprint>) -> Self
pub fn key(self, key: impl Display) -> Self
pub fn build(self) -> View
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DirectionalLightBuilder
impl !Send for DirectionalLightBuilder
impl !Sync for DirectionalLightBuilder
impl !UnwindSafe for DirectionalLightBuilder
impl Forget for DirectionalLightBuilder
impl Freeze for DirectionalLightBuilder
impl Move for DirectionalLightBuilder
impl Unpin for DirectionalLightBuilder
impl UnsafeUnpin for DirectionalLightBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more