Bitbybit Docs
    Preparing search index...

    Class SunPositionDto (Inputs.BabylonMaterial)

    Feeds babylon.material.skyMaterial.setSunPosition with a sky material and an explicit direction to its sun.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalmaterial: SkyMaterial
      • OptionalsunPosition: Vector3

      Returns SunPositionDto

    Properties

    material: SkyMaterial

    The sky material to change in place

    undefined
    
    sunPosition: Vector3

    The direction to the sun as [x, y, z]; used only while useSunPosition is true, otherwise inclination and azimuth decide

    undefined