---
title: ShadowOptions
summary: Interface in @bimworks/viewer3d.
order: 10
languages: [javascript]
sdk-package: JavaScript · @bimworks/viewer3d
---

# ShadowOptions

[[page:reference/javascript/api|API catalogue]] · `@bimworks/viewer3d` · Interface

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
interface ShadowOptions
````



## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/bimworks-viewer3d/shadowoptions-8b49cacf#member-groundelevation-e81331f419ab|groundElevation]] | Property | Height of the ground that catches the shadow, in metres in display coordinates; null for the lowest visible geometry |
| [[page:reference/javascript/bimworks-viewer3d/shadowoptions-8b49cacf#member-mode-e14ab9d226dd|mode]] | Property | "off" (the default), "ground" or "sun" |
| [[page:reference/javascript/bimworks-viewer3d/shadowoptions-8b49cacf#member-quality-49099285c912|quality]] | Property | "auto" (the default: standard on touch-only devices, high elsewhere); "standard": a 2048² map; "high": a 4096² map at finer depth precision and, once the cam… |
| [[page:reference/javascript/bimworks-viewer3d/shadowoptions-8b49cacf#member-sectionplanescutshadows-36aa8d6f9c41|sectionPlanesCutShadows]] | Property | Default true: what a section plane cuts away casts no shadow |
| [[page:reference/javascript/bimworks-viewer3d/shadowoptions-8b49cacf#member-threshold-4c7852949381|threshold]] | Property | The opacity (0..1) from which a transparent object casts with "threshold". Default 0.9 |
| [[page:reference/javascript/bimworks-viewer3d/shadowoptions-8b49cacf#member-transparentcasters-289a49b67429|transparentCasters]] | Property | What transparent objects cast in the sun: "attenuate" (the default) lets through as much light as the object lets the background through on screen; "tint" th… |

## `groundElevation` {#member-groundelevation-e81331f419ab}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
groundElevation?: number | null
````

Height of the ground that catches the shadow, in metres in display coordinates; null for the lowest visible geometry

## `mode` {#member-mode-e14ab9d226dd}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
mode?: "off" | "sun" | "ground"
````

"off" (the default), "ground" or "sun"

## `quality` {#member-quality-49099285c912}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
quality?: "auto" | "standard" | "high"
````

"auto" (the default: standard on touch-only devices, high elsewhere); "standard": a 2048²
map; "high": a 4096² map at finer depth precision and, once the camera rests, a 2048² view
map of what it sees nearby and soft edges from the sun's disc

## `sectionPlanesCutShadows` {#member-sectionplanescutshadows-36aa8d6f9c41}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
sectionPlanesCutShadows?: boolean
````

Default true: what a section plane cuts away casts no shadow

## `threshold` {#member-threshold-4c7852949381}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
threshold?: number
````

The opacity (0..1) from which a transparent object casts with "threshold". Default 0.9

## `transparentCasters` {#member-transparentcasters-289a49b67429}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
transparentCasters?: "none" | "threshold" | "attenuate" | "tint"
````

What transparent objects cast in the sun: "attenuate" (the default) lets through as much
light as the object lets the background through on screen; "tint" the same in the hue of
its colour; "threshold" a full shadow from the threshold opacity up and none below;
"none" nothing. The ground shadow knows "threshold" and "none" only
