Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Flashlight

Hierarchy

  • LightDrawable
    • Flashlight

Index

Constructors

constructor

  • new Flashlight(center: vec2, color: vec3, intensity: number, direction: vec2, startCutoff?: number): Flashlight

Properties

center

center: vec2

color

color: vec3

direction

direction: vec2

intensity

intensity: number

Protected lightnessRatio

lightnessRatio: number = 1

startCutoff

startCutoff: number

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: Flashlight = new Flashlight(vec2.create(), vec3.create(), 0, vec2.create())

shaderCombinationSteps

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

uniformCountMacroName

uniformCountMacroName: string = "FLASHLIGHT_COUNT"

propertyUniformMapping

propertyUniformMapping: object

center

center: string = "flashlightCenters"

color

color: string = "flashlightColors"

direction

direction: string = "flashlightDirections"

intensity

intensity: string = "flashlightIntensities"

startCutoff

startCutoff: string = "flashlightStartCutoffs"