Weather settings

WeatherSettings

2024.8.28

yisky

Constructors

Properties

ambientGradient: Gradient = ...

Ambient color gradient

WeatherSettings

moonlightColorGradient: Gradient = ...

Moonlight color gradient

WeatherSettings

moonlightIntensityCurve: AnimationCurve = ...

Moonlight intensity curve

WeatherSettings

sunlightColorGradient: Gradient = ...

Sunlight color gradient

WeatherSettings

sunlightIntensityCurve: AnimationCurve = ...

Sunlight intensity curve

WeatherSettings

Methods

  • Get ambient color by sun light direction

    Parameters

    • sunDirection: Vector3

      the sun light direction, from sun to ground

    Returns Color

    WeatherSettings

  • Get moonlight color by moonlight direction

    Parameters

    • moonlightDirection: Vector3

      the moonlight direction, from moon to ground

    Returns Color

    WeatherSettings

  • Get moonlight intensity by moonlight direction

    Parameters

    • moonlightDirection: Vector3

      the moonlight direction, from moon to ground

    Returns number

    WeatherSettings

  • Get sunlight color by sunlight direction

    Parameters

    • sunlightDirection: Vector3

      the sunlight direction, from sun to ground

    Returns Color

    WeatherSettings

  • Get sunlight intensity by sunlight direction

    Parameters

    • sunlightDirection: Vector3

      the sunlight direction, from sun to ground

    Returns number

    WeatherSettings