Types
import type { ColorAndIntensity, SunLight } from "@arcgis/core/views/3d/webgl/types.js";

Type definitions

ColorAndIntensity

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Tuple of an RGB color value and an intensity value.

color

Property
Type
[ number, number, number ]
Since
ArcGIS Maps SDK for JavaScript 5.0

RGB color with values between 0 and 1.

intensity

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Scalar intensity value by which the color should be scaled for compositing.

SunLight

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the lighting used by SceneView, derived from its sun lighting model. It consists of a directional Lambertian (diffuse) and a constant (ambient) term, which should be treated in the sense of the Phong Reflection Model.

direction

Property
Type
[ number, number, number ]
Since
ArcGIS Maps SDK for JavaScript 5.0

The incident light direction in render coordinates.

ambient

Property
Type
ColorAndIntensity
Since
ArcGIS Maps SDK for JavaScript 5.0

The ambient light color and intensity.

diffuse

Property
Type
ColorAndIntensity
Since
ArcGIS Maps SDK for JavaScript 5.0

The diffuse light color and intensity.