Options
All
  • Public
  • Public/Protected
  • All
Menu

Eye-dome lighting (EDL) is a non-photorealistic lighting model, which helps accentuate the shapes of different objects to improve depth perception, by shading their outlines.

Eye-dome lighting
Left: eye-dome lighting disabled, Right: eye-dome lighting enabled

Technically, the lighting model applies a shade to each pixel, based on the depth difference between that pixel and its surrounding pixels. The EDL technique uses 3 properties:
  • the window property defines how many surrounding pixels must be taken into account.
  • the strength property is a factor to multiply with the shading that is applied to the image. A value between 0 and 1 will soften the shade, a value higher than 1 will harden the shade.
  • the color property defines what color the shade will have.

See also the section "Configuring WebGL Map effects" in the LuciadRIA Developer's Guide.

Example

  map.effect.eyeDomeLighting = {
    window: 2,
    strength: 0.5
  }

Note that transparent features are not affected by this effect.

since

2020.0

Hierarchy

  • EyeDomeLightingEffect

Overview

Properties

Properties

Optional color

color: string

The EDL color defines the color of the shade.

Note that the alpha component of the color is ignored so the color will be fully opaque.

default

rgb(0, 0, 0)

Optional strength

strength: number

The EDL strength is a factor to make the shading effect more or less pronounced. A value between 0 and 1 will soften the shade, a value greater than 1 will harden the shade.

default

1

Optional window

window: number

The EDL window defines how many surrounding pixels will be taken into account.

default

2

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method