()
| 4 | import { Effect } from '@deck.gl/core'; |
| 5 | |
| 6 | export function lightingEffects(): Effect[] { |
| 7 | |
| 8 | const ambientLight = new base.deck.AmbientLight({ |
| 9 | color: [255, 255, 255], |
| 10 | intensity: 0.3, |
| 11 | }); |
| 12 | |
| 13 | const cameraLight = new base.deck._CameraLight({ |
| 14 | color: [255, 255, 255], |
| 15 | intensity: 1, |
| 16 | }); |
| 17 | |
| 18 | // const directionalLight = new base.deck.DirectionalLight({ |
| 19 | // color: [255, 255, 255], |
| 20 | // direction: [0, 0, -1], |
| 21 | // intensity: 0.2 |
| 22 | // }); |
| 23 | |
| 24 | return [new base.deck.LightingEffect({ ambientLight, cameraLight })]; |
| 25 | } |
no outgoing calls
no test coverage detected