Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PointLightDto

Index

Constructors

constructor

  • new PointLightDto(position?: Point3, intensity?: number, diffuse?: string, specular?: string, radius?: number, shadowGeneratorMapSize?: number, enableShadows?: boolean, shadowDarkness?: number, shadowUsePercentageCloserFiltering?: boolean, shadowContactHardeningLightSizeUVRatio?: number, shadowBias?: number, shadowNormalBias?: number, shadowMaxZ?: number, shadowMinZ?: number): PointLightDto
  • Parameters

    • Optional position: Point3
    • Optional intensity: number
    • Optional diffuse: string
    • Optional specular: string
    • Optional radius: number
    • Optional shadowGeneratorMapSize: number
    • Optional enableShadows: boolean
    • Optional shadowDarkness: number
    • Optional shadowUsePercentageCloserFiltering: boolean
    • Optional shadowContactHardeningLightSizeUVRatio: number
    • Optional shadowBias: number
    • Optional shadowNormalBias: number
    • Optional shadowMaxZ: number
    • Optional shadowMinZ: number

    Returns PointLightDto

Properties

diffuse

diffuse: string

Diffuse colour of the point light

default

#ffffff

Optional enableShadows

enableShadows: boolean

Enables shadows

default

true

intensity

intensity: number

Intensity of the point light, value between 0 and 1

default

2000

minimum

0

maximum

Infinity

step

500

position

position: Point3

Position of the point light

default

[0, 0, 0]

radius

radius: number

Radius of the sphere mesh representing the light bulb. If 0 light gets created without the mesh

default

0.1

minimum

0

maximum

Infinity

step

0.1

shadowBias

shadowBias: number

Shadow bias

default

0.0001

minimum

0

maximum

Infinity

step

0.00001

shadowContactHardeningLightSizeUVRatio

shadowContactHardeningLightSizeUVRatio: number

Shadow contact hardening light size UV ratio - only applies if usePercentageCloserFiltering is true

default

0.2

minimum

0

maximum

Infinity

step

0.1

Optional shadowDarkness

shadowDarkness: number

Shadow darkness

default

0

minimum

0

maximum

1

step

0.1

Optional shadowGeneratorMapSize

shadowGeneratorMapSize: number

The map size for shadow generator texture if shadows are enabled

default

1024

minimum

0

maximum

Infinity

step

1

shadowMaxZ

shadowMaxZ: number

Shadow max Z

default

1000

minimum

0

maximum

Infinity

step

50

shadowMinZ

shadowMinZ: number

Shadow min Z

default

0.1

minimum

0

maximum

Infinity

step

50

shadowNormalBias

shadowNormalBias: number

Shadow normal bias

default

0.002

minimum

0

maximum

Infinity

step

0.0001

shadowUsePercentageCloserFiltering

shadowUsePercentageCloserFiltering: boolean

Use percentage closer filtering

default

true

specular

specular: string

Specular colour of the point light

default

#ffffff

Generated using TypeDoc