pub struct ScatteringFunction { /* private fields */ }Expand description
Wraps the corresponding Model I/O scattering function counterpart.
Implementations§
Source§impl ScatteringFunction
impl ScatteringFunction
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O scattering function counterpart.
Sourcepub fn name(&self) -> Option<String>
pub fn name(&self) -> Option<String>
Calls the corresponding Model I/O method on the wrapped Model I/O scattering function counterpart.
Sourcepub fn set_name(&self, name: &str) -> Result<()>
pub fn set_name(&self, name: &str) -> Result<()>
Calls the corresponding Model I/O method on the wrapped Model I/O scattering function counterpart.
Sourcepub fn base_color(&self) -> Option<MaterialProperty>
pub fn base_color(&self) -> Option<MaterialProperty>
Calls the corresponding Model I/O method on the wrapped Model I/O scattering function counterpart.
Sourcepub fn emission(&self) -> Option<MaterialProperty>
pub fn emission(&self) -> Option<MaterialProperty>
Calls the corresponding Model I/O method on the wrapped Model I/O scattering function counterpart.
Sourcepub fn specular(&self) -> Option<MaterialProperty>
pub fn specular(&self) -> Option<MaterialProperty>
Calls the corresponding Model I/O method on the wrapped Model I/O scattering function counterpart.
Sourcepub fn material_index_of_refraction(&self) -> Option<MaterialProperty>
pub fn material_index_of_refraction(&self) -> Option<MaterialProperty>
Calls the corresponding Model I/O method on the wrapped Model I/O scattering function counterpart.
Sourcepub fn interface_index_of_refraction(&self) -> Option<MaterialProperty>
pub fn interface_index_of_refraction(&self) -> Option<MaterialProperty>
Calls the corresponding Model I/O method on the wrapped Model I/O scattering function counterpart.
Sourcepub fn normal(&self) -> Option<MaterialProperty>
pub fn normal(&self) -> Option<MaterialProperty>
Calls the corresponding Model I/O method on the wrapped Model I/O scattering function counterpart.
Sourcepub fn ambient_occlusion(&self) -> Option<MaterialProperty>
pub fn ambient_occlusion(&self) -> Option<MaterialProperty>
Calls the corresponding Model I/O method on the wrapped Model I/O scattering function counterpart.
Sourcepub fn ambient_occlusion_scale(&self) -> Option<MaterialProperty>
pub fn ambient_occlusion_scale(&self) -> Option<MaterialProperty>
Calls the corresponding Model I/O method on the wrapped Model I/O scattering function counterpart.
Sourcepub fn as_physically_plausible_scattering_function(
&self,
) -> Option<PhysicallyPlausibleScatteringFunction>
pub fn as_physically_plausible_scattering_function( &self, ) -> Option<PhysicallyPlausibleScatteringFunction>
Calls the corresponding Model I/O method on the wrapped Model I/O scattering function counterpart.
Trait Implementations§
Source§impl Clone for ScatteringFunction
impl Clone for ScatteringFunction
Source§fn clone(&self) -> ScatteringFunction
fn clone(&self) -> ScatteringFunction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more