DistanceModel

DistanceModel

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


© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/DistanceModel

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部