pub struct OceanOpticalConfig { /* private fields */ }Expand description
Physical optical shading parameters for ocean Beer-Lambert absorption, Fresnel, SSS, and seabed caustics.
Implementations§
Source§impl OceanOpticalConfig
Preset optical profile constructors for OceanOpticalConfig.
impl OceanOpticalConfig
Preset optical profile constructors for OceanOpticalConfig.
Sourcepub fn from_preset(preset: OceanPreset) -> Self
pub fn from_preset(preset: OceanPreset) -> Self
Source§impl OceanOpticalConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
impl OceanOpticalConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_absorption_coeff(&self) -> Vec3
pub fn get_mut_absorption_coeff(&mut self) -> &mut Vec3
pub fn set_absorption_coeff(&mut self, val: Vec3) -> &mut Self
pub fn get_deep_scatter_color(&self) -> Vec3
pub fn get_mut_deep_scatter_color(&mut self) -> &mut Vec3
pub fn set_deep_scatter_color(&mut self, val: Vec3) -> &mut Self
pub fn get_shallow_tint_color(&self) -> Vec3
pub fn get_mut_shallow_tint_color(&mut self) -> &mut Vec3
pub fn set_shallow_tint_color(&mut self, val: Vec3) -> &mut Self
pub fn get_sss_color(&self) -> Vec3
pub fn get_mut_sss_color(&mut self) -> &mut Vec3
pub fn set_sss_color(&mut self, val: Vec3) -> &mut Self
pub fn get_foam_color(&self) -> Vec3
pub fn get_mut_foam_color(&mut self) -> &mut Vec3
pub fn set_foam_color(&mut self, val: Vec3) -> &mut Self
pub fn get_fresnel_f0(&self) -> f32
pub fn get_mut_fresnel_f0(&mut self) -> &mut f32
pub fn set_fresnel_f0(&mut self, val: f32) -> &mut Self
pub fn get_sss_strength(&self) -> f32
pub fn get_mut_sss_strength(&mut self) -> &mut f32
pub fn set_sss_strength(&mut self, val: f32) -> &mut Self
pub fn get_caustics_strength(&self) -> f32
pub fn get_mut_caustics_strength(&mut self) -> &mut f32
pub fn set_caustics_strength(&mut self, val: f32) -> &mut Self
pub fn get_foam_jacobian_threshold(&self) -> f32
pub fn get_mut_foam_jacobian_threshold(&mut self) -> &mut f32
pub fn set_foam_jacobian_threshold(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for OceanOpticalConfig
impl Clone for OceanOpticalConfig
impl Copy for OceanOpticalConfig
Source§impl Debug for OceanOpticalConfig
impl Debug for OceanOpticalConfig
Source§impl Default for OceanOpticalConfig
Default clear coastal seawater optical configuration.
impl Default for OceanOpticalConfig
Default clear coastal seawater optical configuration.
Source§impl PartialEq for OceanOpticalConfig
impl PartialEq for OceanOpticalConfig
impl StructuralPartialEq for OceanOpticalConfig
Auto Trait Implementations§
impl Forget for OceanOpticalConfig
impl Freeze for OceanOpticalConfig
impl Move for OceanOpticalConfig
impl RefUnwindSafe for OceanOpticalConfig
impl Send for OceanOpticalConfig
impl Sync for OceanOpticalConfig
impl Unpin for OceanOpticalConfig
impl UnsafeUnpin for OceanOpticalConfig
impl UnwindSafe for OceanOpticalConfig
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