Skip to content

Interface: SurfaceShadingOptions ​

Defined in: surface/SurfaceShading.ts:41

Properties ​

thresholdEdges? ​

ts
thresholdEdges?: boolean;

Defined in: surface/SurfaceShading.ts:43

Draw thresholded data layers with per-fragment isolines. Default true.


thresholdContour? ​

ts
thresholdContour?: ThresholdContour;

Defined in: surface/SurfaceShading.ts:45

How the threshold contour is placed; see ThresholdContour. Default 'vertex'.


thresholdOutline? ​

ts
thresholdOutline?: number;

Defined in: surface/SurfaceShading.ts:47

Outline band width in screen-space derivative units (0 disables). Default 0.


thresholdOutlineShade? ​

ts
thresholdOutlineShade?: number;

Defined in: surface/SurfaceShading.ts:49

Colour multiplier inside the outline band (0 black, 1 invisible). Default 0.55.


silhouetteDarkening? ​

ts
silhouetteDarkening?: number;

Defined in: surface/SurfaceShading.ts:51

Darkening at grazing angles (0 none, 1 black silhouette). Default 0.


overlayEmission? ​

ts
overlayEmission?: number;

Defined in: surface/SurfaceShading.ts:57

Share of the overlay colour emitted rather than lit (0-1). Full diffuse shading muddies bright colormap ends (yellow reads olive on shadowed slopes); a partial emissive term keeps overlay hues true. Default 0.


overlayLighting? ​

ts
overlayLighting?: readonly [number, number] | null;

Defined in: surface/SurfaceShading.ts:67

Bounds [min, max] on the factor by which shading may scale the overlay's displayed (sRGB) colour, e.g. [0.85, 1.08]: lighting still models the folds, but a peak never renders much lighter or darker than its colour-key colour. Applied in linear light as the gamma-2.2 equivalents. Null (the default) leaves overlay lighting unbounded. The top data layer is drawn as the fragment overlay whenever bounds are set, thresholded or not.

Released under the MIT License.