Interface: SurfaceShadingOptions
Defined in: surface/SurfaceShading.ts:41
Properties
thresholdEdges?
thresholdEdges?: boolean;Defined in: surface/SurfaceShading.ts:43
Draw thresholded data layers with per-fragment isolines. Default true.
thresholdContour?
thresholdContour?: ThresholdContour;Defined in: surface/SurfaceShading.ts:45
How the threshold contour is placed; see ThresholdContour. Default 'vertex'.
thresholdOutline?
thresholdOutline?: number;Defined in: surface/SurfaceShading.ts:47
Outline band width in screen-space derivative units (0 disables). Default 0.
thresholdOutlineShade?
thresholdOutlineShade?: number;Defined in: surface/SurfaceShading.ts:49
Colour multiplier inside the outline band (0 black, 1 invisible). Default 0.55.
silhouetteDarkening?
silhouetteDarkening?: number;Defined in: surface/SurfaceShading.ts:51
Darkening at grazing angles (0 none, 1 black silhouette). Default 0.
overlayEmission?
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?
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.