Globals / "effect/Effect" / Effect
Common structure for an effect
-
Effect
• Abstract enabled: boolean
Defined in src/effect/Effect.ts:24
Whether the effect should be included in the render stack at this time
• Abstract finished: boolean
Defined in src/effect/Effect.ts:28
Whether the effect should be permanently removed from the render stack
• Readonly now: number
Defined in src/effect/Effect.ts:11
Singleton reference to Date.now() – you don't/shouldn't update this, it is handled for you. All effects will have the same reference to Date.now() in any given frame.
▸ AbstractgetColor(light: Light): EffectColor
Defined in src/effect/Effect.ts:16
Returns the next color for a given light
| Name | Type | Description |
|---|---|---|
light |
Light | light to compute a color for |
Returns: EffectColor
▸ Abstractrender(): void | Promise<void>
Defined in src/effect/Effect.ts:20
Runs a render frame
Returns: void | Promise<void>