SkyType

public struct SkyType : RawRepresentable, Codable, Hashable

The type of the sky

  • Declaration

    Swift

    public let rawValue: String
  • Declaration

    Swift

    public init(rawValue: String)
  • Renders the sky with a gradient that can be configured with {@link SKY_GRADIENT_RADIUS} and {@link SKY_GRADIENT}.

    Declaration

    Swift

    public static let gradient: SkyType
  • Renders the sky with a simulated atmospheric scattering algorithm, the sun direction can be attached to the light position or explicitly set through {@link SKY_ATMOSPHERE_SUN}.

    Declaration

    Swift

    public static let atmosphere: SkyType