MCPcopy Index your code
hub / github.com/microsoft/SandDance / lightingEffects

Function lightingEffects

packages/vega-deck.gl/src/effects.ts:6–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { Effect } from '@deck.gl/core';
5
6export 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}

Callers 3

presentMethod · 0.90
setDeckPropsMethod · 0.90
homeCameraMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected