pub struct LightProbe { /* private fields */ }Implementations§
Source§impl LightProbe
impl LightProbe
pub fn new( reflective_texture: Option<&Texture>, irradiance_texture: Option<&Texture>, ) -> Result<Self>
pub fn generate_spherical_harmonics_from_irradiance(&self, level: usize)
pub fn reflective_texture(&self) -> Option<Texture>
pub fn irradiance_texture(&self) -> Option<Texture>
pub fn spherical_harmonics_level(&self) -> usize
pub fn spherical_harmonics_coefficients(&self) -> Vec<f32>
pub fn as_light(&self) -> Light
pub fn as_object(&self) -> Object
Trait Implementations§
Source§impl Clone for LightProbe
impl Clone for LightProbe
Source§fn clone(&self) -> LightProbe
fn clone(&self) -> LightProbe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LightProbe
impl RefUnwindSafe for LightProbe
impl !Send for LightProbe
impl !Sync for LightProbe
impl Unpin for LightProbe
impl UnsafeUnpin for LightProbe
impl UnwindSafe for LightProbe
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