Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CircleLight

Hierarchy

  • LightDrawable
    • CircleLight

Index

Constructors

constructor

  • new CircleLight(center: vec2, color: vec3, intensity: number): CircleLight

Properties

center

center: vec2

color

color: vec3

intensity

intensity: number

Protected lightnessRatio

lightnessRatio: number = 1

Methods

Protected getObjectToSerialize

  • getObjectToSerialize(transform2d: mat2d, transform1d: number): any

minDistance

  • minDistance(target: vec2): number

setLightnessRatio

  • setLightnessRatio(ratio: number): void

Object literals

Static Readonly descriptor

descriptor: object

empty

empty: CircleLight = new CircleLight(vec2.create(), vec3.create(), 0)

shaderCombinationSteps

shaderCombinationSteps: number[] = [0, 1, 2, 4, 8, 16]

uniformCountMacroName

uniformCountMacroName: string = "CIRCLE_LIGHT_COUNT"

propertyUniformMapping

propertyUniformMapping: object

center

center: string = "circleLightCenters"

color

color: string = "circleLightColors"

intensity

intensity: string = "circleLightIntensities"