Skip to main content

cone_gain

Function cone_gain 

Source
pub fn cone_gain(forward: Vec3, to_listener: Vec3, cone_degrees: f32) -> f32
Expand description

Gain of a directional source: full inside the inner 60 % of the cone, fading to 10 % at its edge and beyond. forward is where the source points, to_listener the direction from the source to the listener.