MTSky
public struct MTSky : Sendable, Codable, Equatable
Sky configuration used by map.setSky.
-
The base color of the sky.
Declaration
Swift
public var skyColor: MTSkyColorValue? -
How to blend the sky color with the horizon in the [0, 1] range.
Declaration
Swift
public var skyHorizonBlend: MTSkyNumberValue? -
The base color at the horizon.
Declaration
Swift
public var horizonColor: MTSkyColorValue? -
How to blend the fog and horizon colors in the [0, 1] range.
Declaration
Swift
public var horizonFogBlend: MTSkyNumberValue? -
The base color for the fog (requires 3D terrain).
Declaration
Swift
public var fogColor: MTSkyColorValue? -
How to blend fog over the terrain in the [0, 1] range.
Declaration
Swift
public var fogGroundBlend: MTSkyNumberValue? -
How to blend the atmosphere in the [0, 1] range.
Declaration
Swift
public var atmosphereBlend: MTSkyNumberValue? -
init(skyColor:skyHorizonBlend: horizonColor: horizonFogBlend: fogColor: fogGroundBlend: atmosphereBlend: ) Undocumented
Declaration
Swift
public init( skyColor: MTSkyColorValue? = nil, skyHorizonBlend: MTSkyNumberValue? = nil, horizonColor: MTSkyColorValue? = nil, horizonFogBlend: MTSkyNumberValue? = nil, fogColor: MTSkyColorValue? = nil, fogGroundBlend: MTSkyNumberValue? = nil, atmosphereBlend: MTSkyNumberValue? = nil ) -
Declaration
Swift
public init(from decoder: any Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws