pub struct PhotometricLight { /* private fields */ }Expand description
Wraps the corresponding Model I/O photometric light counterpart.
Implementations§
Source§impl PhotometricLight
impl PhotometricLight
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O photometric light counterpart.
Sourcepub fn from_ies_profile(path: impl AsRef<Path>) -> Result<Self>
pub fn from_ies_profile(path: impl AsRef<Path>) -> Result<Self>
Calls the corresponding Model I/O method on the wrapped Model I/O photometric light counterpart.
Sourcepub fn info(&self) -> Result<PhotometricLightInfo>
pub fn info(&self) -> Result<PhotometricLightInfo>
Calls the corresponding Model I/O method on the wrapped Model I/O photometric light counterpart.
Sourcepub fn generate_spherical_harmonics_from_light(&self, level: usize)
pub fn generate_spherical_harmonics_from_light(&self, level: usize)
Calls the corresponding Model I/O method on the wrapped Model I/O photometric light counterpart.
Sourcepub fn generate_cubemap_from_light(&self, texture_size: usize)
pub fn generate_cubemap_from_light(&self, texture_size: usize)
Calls the corresponding Model I/O method on the wrapped Model I/O photometric light counterpart.
Sourcepub fn generate_texture(&self, texture_size: usize) -> Option<Texture>
pub fn generate_texture(&self, texture_size: usize) -> Option<Texture>
Calls the corresponding Model I/O method on the wrapped Model I/O photometric light counterpart.
Sourcepub fn light_cube_map(&self) -> Option<Texture>
pub fn light_cube_map(&self) -> Option<Texture>
Calls the corresponding Model I/O method on the wrapped Model I/O photometric light counterpart.
Sourcepub fn as_physically_plausible_light(&self) -> PhysicallyPlausibleLight
pub fn as_physically_plausible_light(&self) -> PhysicallyPlausibleLight
Calls the corresponding Model I/O method on the wrapped Model I/O photometric light counterpart.
Trait Implementations§
Source§impl Clone for PhotometricLight
impl Clone for PhotometricLight
Source§fn clone(&self) -> PhotometricLight
fn clone(&self) -> PhotometricLight
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more