Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LensFlare

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

Properties

Methods

Constructors

constructor

  • 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

alphaModeSearch playground for alphaMode

alphaMode: number

Define the alpha mode to render this particular lens.

colorSearch playground for color

color: Color3

Define the lens color.

positionSearch playground for position

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.

sizeSearch playground for size

size: number

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

textureSearch playground for texture

texture: Nullable<Texture>

Define the lens texture.

Methods

disposeSearch playground for dispose

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

    Returns void

Static AddFlareSearch playground for AddFlare

  • 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 property
  • Inherited method
  • Static property
  • Static method