Options
All
  • Public
  • Public/Protected
  • All
Menu

This represents one of the lens effect in a lensFlareSystem. It controls one of the individual texture used in the effect.

see

https://doc.babylonjs.com/how_to/how_to_use_lens_flares

Hierarchy

  • LensFlare

Index

Constructors

  • Instantiates a new Lens Flare. This represents one of the lens effect in a lensFlareSystem. It controls one of the individual texture used in the effect.

    see

    https://doc.babylonjs.com/how_to/how_to_use_lens_flares

    Parameters

    • size: number

      Define the size of the lens flare in the system (a floating value between 0 and 1)

    • position: number

      Define the position of the lens flare in the system. (a floating value between -1 and 1). A value of 0 is located on the emitter. A value greater than 0 is beyond the emitter and a value lesser than 0 is behind.

    • color: Color3

      Define the lens color

    • imgUrl: string

      Define the lens texture url

    • system: LensFlareSystem

      Define the lensFlareSystem this flare is part of

    Returns LensFlare

Properties

_drawWrapper: DrawWrapper
internal
alphaMode: number

Define the alpha mode to render this particular lens.

color: Color3

Define the lens color.

position: number

Define the position of the lens flare in the system. (a floating value between -1 and 1). A value of 0 is located on the emitter. A value greater than 0 is beyond the emitter and a value lesser than 0 is behind.

size: number

Define the size of the lens flare in the system (a floating value between 0 and 1)

texture: Nullable<Texture>

Define the lens texture.

Methods

  • dispose(): void
  • Dispose and release the lens flare with its associated resources.

    Returns void

  • Creates a new Lens Flare. This represents one of the lens effect in a lensFlareSystem. It controls one of the individual texture used in the effect.

    see

    https://doc.babylonjs.com/how_to/how_to_use_lens_flares

    Parameters

    • size: number

      Define the size of the lens flare (a floating value between 0 and 1)

    • position: number

      Define the position of the lens flare in the system. (a floating value between -1 and 1). A value of 0 is located on the emitter. A value greater than 0 is beyond the emitter and a value lesser than 0 is behind.

    • color: Color3

      Define the lens color

    • imgUrl: string

      Define the lens texture url

    • system: LensFlareSystem

      Define the lensFlareSystem this flare is part of

    Returns LensFlare

    The newly created Lens Flare

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme