init(from:)
Creates a reverb mesh resource from a mesh resource.
Declaration
@MainActor convenience init(from mesh: MeshResource) throwsParameters
- mesh:
The mesh resource to convert into a reverb mesh.
Discussion
Use this initializer to convert visual or physics geometry you already have into acoustic geometry, without duplicating the data:
let reverbMesh = try ReverbMeshResource(from: myVisualMesh)