Difference between revisions of "DistanceModel"
(DistanceModel enum.) |
m (Improve wording) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{newin|[[0.8.0]]|080|type=enum}} | ||
The different distance models. | The different distance models. | ||
− | Extended information can be found in the [ | + | Extended information can be found in the chapter "3.4. Attenuation By Distance" of the [https://www.openal.org/documentation/openal-1.1-specification.pdf OpenAL 1.1 specification]. |
+ | |||
== Constants == | == Constants == | ||
;none: Sources do not get attenuated. | ;none: Sources do not get attenuated. | ||
;inverse: Inverse distance attenuation. | ;inverse: Inverse distance attenuation. | ||
− | ; | + | ;inverseclamped: Inverse distance attenuation. Gain is clamped. In version [[0.9.2]] and older this is named '''inverse clamped'''. |
;linear: Linear attenuation. | ;linear: Linear attenuation. | ||
− | ; | + | ;linearclamped: Linear attenuation. Gain is clamped. In version [[0.9.2]] and older this is named '''linear clamped'''. |
;exponent: Exponential attenuation. | ;exponent: Exponential attenuation. | ||
− | ; | + | ;exponentclamped: Exponential attenuation. Gain is clamped. In version [[0.9.2]] and older this is named '''exponent clamped'''. |
== See Also == | == See Also == | ||
* [[parent::love.audio]] | * [[parent::love.audio]] |
Latest revision as of 23:17, 30 May 2016
Available since LÖVE 0.8.0 |
This enum is not supported in earlier versions. |
The different distance models.
Extended information can be found in the chapter "3.4. Attenuation By Distance" of the OpenAL 1.1 specification.
Constants
- none
- Sources do not get attenuated.
- inverse
- Inverse distance attenuation.
- inverseclamped
- Inverse distance attenuation. Gain is clamped. In version 0.9.2 and older this is named inverse clamped.
- linear
- Linear attenuation.
- linearclamped
- Linear attenuation. Gain is clamped. In version 0.9.2 and older this is named linear clamped.
- exponent
- Exponential attenuation.
- exponentclamped
- Exponential attenuation. Gain is clamped. In version 0.9.2 and older this is named exponent clamped.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info