MTSpace
public struct MTSpace : Sendable, Codable
Configuration for the “space” background.
-
Optional color to apply to the background and/or stars depending on preset.
Declaration
Swift
public var color: MTColor?
-
Optional cubemap preset.
Declaration
Swift
public var preset: MTSpacePreset?
-
Optional faces definition for a custom cubemap.
Declaration
Swift
public var faces: MTSpaceFaces?
-
Optional path definition for a custom cubemap.
Declaration
Swift
public var path: MTSpacePath?
-
Declaration
Swift
public init( color: MTColor? = nil, preset: MTSpacePreset? = nil, faces: MTSpaceFaces? = nil, path: MTSpacePath? = nil )
-
Declaration
Swift
public init(from decoder: any Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws