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

TypeNameDefault
floatabsorption0.5
intacoustic_category0
Colordebug_colorColor(0.74509805, 0.74509805, 0.74509805, 1)
floatfreq_bias0.5
Stringmaterial_name""
floatreverb0.5
floattransmission_loss20.0

Methods

ReturnsMethod
HammeriteAudioMaterialcreate(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

ValueNameDescription
0UNSPECIFIED
1MASONRY
2WOOD
3METAL
4FABRIC
5TILE
6EARTH

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).

Hammerite 2.0 · built from 6d57ab2d, 2026-10-17