Web Components API Reference - v0.2.5
    Preparing search index...

    Class SkyElement

    The SkyElement interface provides properties and methods for manipulating <pc-sky> elements. The SkyElement interface also inherits the properties and methods of the HTMLElement interface.

    Hierarchy (View Summary)

    Index

    Accessors

    • get asset(): string

      Gets the id of the pc-asset to use for the skybox.

      Returns string

      The asset ID.

    • set asset(value: string): void

      Sets the id of the pc-asset to use for the skybox.

      Parameters

      • value: string

        The asset ID.

      Returns void

    • get center(): Vec3

      Gets the center of the skybox.

      Returns Vec3

      The center.

    • set center(value: Vec3): void

      Sets the center of the skybox.

      Parameters

      • value: Vec3

        The center.

      Returns void

    • get intensity(): number

      Gets the intensity of the skybox.

      Returns number

      The intensity.

    • set intensity(value: number): void

      Sets the intensity of the skybox.

      Parameters

      • value: number

        The intensity.

      Returns void

    • get level(): number

      Gets the mip level of the skybox.

      Returns number

      The mip level.

    • set level(value: number): void

      Sets the mip level of the skybox.

      Parameters

      • value: number

        The mip level.

      Returns void

    • get lighting(): boolean

      Gets whether the skybox is used as a light source.

      Returns boolean

      Whether to use lighting.

    • set lighting(value: boolean): void

      Sets whether the skybox is used as a light source.

      Parameters

      • value: boolean

        Whether to use lighting.

      Returns void

    • get rotation(): Vec3

      Gets the Euler rotation of the skybox.

      Returns Vec3

      The rotation.

    • set rotation(value: Vec3): void

      Sets the Euler rotation of the skybox.

      Parameters

      • value: Vec3

        The rotation.

      Returns void

    • get scale(): Vec3

      Gets the scale of the skybox.

      Returns Vec3

      The scale.

    • set scale(value: Vec3): void

      Sets the scale of the skybox.

      Parameters

      • value: Vec3

        The scale.

      Returns void

    • get type(): "none" | "box" | "dome" | "infinite"

      Gets the type of the skybox.

      Returns "none" | "box" | "dome" | "infinite"

      The type.

    • set type(value: "none" | "box" | "dome" | "infinite"): void

      Sets the type of the skybox.

      Parameters

      • value: "none" | "box" | "dome" | "infinite"

        The type.

      Returns void

    Methods