#[repr(C)]pub struct IPLMaterial {
pub absorption: [IPLfloat32; 3],
pub scattering: IPLfloat32,
pub transmission: [IPLfloat32; 3],
}Expand description
The acoustic properties of a surface.
You can specify the acoustic material properties of each triangle, although typically many triangles will share a common material.
The acoustic material properties are specified for three frequency bands with center frequencies of 400 Hz, 2.5 KHz, and 15 KHz.
Below are the acoustic material properties for a few standard materials.
{"generic",{0.10f,0.20f,0.30f,0.05f,0.100f,0.050f,0.030f}}
{"brick",{0.03f,0.04f,0.07f,0.05f,0.015f,0.015f,0.015f}}
{"concrete",{0.05f,0.07f,0.08f,0.05f,0.015f,0.002f,0.001f}}
{"ceramic",{0.01f,0.02f,0.02f,0.05f,0.060f,0.044f,0.011f}}
{"gravel",{0.60f,0.70f,0.80f,0.05f,0.031f,0.012f,0.008f}},
{"carpet",{0.24f,0.69f,0.73f,0.05f,0.020f,0.005f,0.003f}}
{"glass",{0.06f,0.03f,0.02f,0.05f,0.060f,0.044f,0.011f}}
{"plaster",{0.12f,0.06f,0.04f,0.05f,0.056f,0.056f,0.004f}}
{"wood",{0.11f,0.07f,0.06f,0.05f,0.070f,0.014f,0.005f}}
{"metal",{0.20f,0.07f,0.06f,0.05f,0.200f,0.025f,0.010f}}
{"rock",{0.13f,0.20f,0.24f,0.05f,0.015f,0.002f,0.001f}}Fields§
§absorption: [IPLfloat32; 3]Fraction of sound energy absorbed at low, middle, high frequencies. Between 0.0 and 1.0.
scattering: IPLfloat32Fraction of sound energy scattered in a random direction on reflection. Between 0.0 (pure specular) and 1.0 (pure diffuse).
transmission: [IPLfloat32; 3]Fraction of sound energy transmitted through at low, middle, high frequencies. Between 0.0 and 1.0. Only used for direct occlusion calculations.
Trait Implementations§
Source§impl Clone for IPLMaterial
impl Clone for IPLMaterial
Source§fn clone(&self) -> IPLMaterial
fn clone(&self) -> IPLMaterial
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IPLMaterial
impl Debug for IPLMaterial
impl Copy for IPLMaterial
Auto Trait Implementations§
impl Freeze for IPLMaterial
impl RefUnwindSafe for IPLMaterial
impl Send for IPLMaterial
impl Sync for IPLMaterial
impl Unpin for IPLMaterial
impl UnwindSafe for IPLMaterial
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