HammeriteAudioMaterial
Audio. Inherits Resource
What one material does to sound: a row of HammeriteAudioMaterials.
The coefficients are real-world acoustics simplified for a game. Only acoustic_category is read today - by the bake, to decide what a room built of this should sound like; the rest are authored and carried but applied to nothing yet, the way HammeriteAudioPreset's absorption fields are.
The families a material can belong to, which are the kinds of room the bake has a reverb for.
Native since 2.0 (#269): made with create(), since a native object is made without arguments.
Properties
| Type | Name | Default |
|---|---|---|
float | absorption | 0.5 |
int | acoustic_category | 0 |
Color | debug_color | Color(0.74509805, 0.74509805, 0.74509805, 1) |
float | freq_bias | 0.5 |
String | material_name | "" |
float | reverb | 0.5 |
float | transmission_loss | 20.0 |
Methods
| Returns | Method |
|---|---|
HammeriteAudioMaterial | create(name: String = "", reverb: float = 0.5, absorption: float = 0.5, transmission_loss: float = 20.0, freq_bias: float = 0.5, category: int = 0) static |
Enumerations
enum Category
| Value | Name | Description |
|---|---|---|
0 | UNSPECIFIED | |
1 | MASONRY | |
2 | WOOD | |
3 | METAL | |
4 | FABRIC | |
5 | TILE | |
6 | EARTH |
Property descriptions
absorption
var absorption: float = 0.5
Undocumented.
acoustic_category
var acoustic_category: int = 0
Undocumented.
debug_color
var debug_color: Color = Color(0.74509805, 0.74509805, 0.74509805, 1)
Undocumented.
freq_bias
var freq_bias: float = 0.5
Undocumented.
material_name
var material_name: String = ""
Undocumented.
reverb
var reverb: float = 0.5
Undocumented.
transmission_loss
var transmission_loss: float = 20.0
Undocumented.
Method descriptions
create()
static func create(name: String = "", reverb: float = 0.5, absorption: float = 0.5, transmission_loss: float = 20.0, freq_bias: float = 0.5, category: int = 0) -> HammeriteAudioMaterial
A native class is made with no arguments, so this stands in for new(name, reverb, absorption, transmission_loss, freq_bias, category).