Capítulo 566 de 859

Chapter 566: LensflareElement

Core Idea

Represents a single flare that can be added to a Lensflare container.

Key Concepts

  • color : Color: The flare's color
  • distance : number: The normalized distance ([0,1]) from the light source. A value of 0 means the flare is located at light source.
  • size : number: The size in pixels.
  • texture : Texture: The flare's texture.

Code Examples

import { LensflareElement } from 'three/addons/objects/Lensflare.js';
  • What it demonstrates: Typical usage of LensflareElement.

Reference Tables

Constructor

Signature
new LensflareElement( texture : Texture, size : number, distance : number, color : Color )

Properties

PropertyDescription
.color : ColorThe flare's color
.distance : numberThe normalized distance ([0,1]) from the light source. A value of 0 means the flare is located at light source.
.size : numberThe size in pixels.
.texture : TextureThe flare's texture.

Key Takeaways

  1. Most relevant properties: color, distance, size, texture.

Connects To