pub struct LightProbe { /* private fields */ }Expand description
Wraps the corresponding Model I/O light probe counterpart.
Implementations§
Source§impl LightProbe
impl LightProbe
Sourcepub fn new(
reflective_texture: Option<&Texture>,
irradiance_texture: Option<&Texture>,
) -> Result<Self>
pub fn new( reflective_texture: Option<&Texture>, irradiance_texture: Option<&Texture>, ) -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O light probe counterpart.
Sourcepub fn generate_spherical_harmonics_from_irradiance(&self, level: usize)
pub fn generate_spherical_harmonics_from_irradiance(&self, level: usize)
Calls the corresponding Model I/O method on the wrapped Model I/O light probe counterpart.
Sourcepub fn reflective_texture(&self) -> Option<Texture>
pub fn reflective_texture(&self) -> Option<Texture>
Calls the corresponding Model I/O method on the wrapped Model I/O light probe counterpart.
Sourcepub fn irradiance_texture(&self) -> Option<Texture>
pub fn irradiance_texture(&self) -> Option<Texture>
Calls the corresponding Model I/O method on the wrapped Model I/O light probe counterpart.
Sourcepub fn spherical_harmonics_level(&self) -> usize
pub fn spherical_harmonics_level(&self) -> usize
Calls the corresponding Model I/O method on the wrapped Model I/O light probe counterpart.
Sourcepub fn spherical_harmonics_coefficients(&self) -> Vec<f32>
pub fn spherical_harmonics_coefficients(&self) -> Vec<f32>
Calls the corresponding Model I/O method on the wrapped Model I/O light probe counterpart.
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