# ShadowMode

Scene/ShadowMode.js 7
Specifies whether the object casts or receives shadows from light sources when shadows are enabled.

##### Properties:

Name | Type | Description
--- | --- | ---
`DISABLED` | Number | The object does not cast or receive shadows.
`ENABLED` | Number | The object casts and receives shadows.
`CAST_ONLY` | Number | The object casts shadows only.
`RECEIVE_ONLY` | Number | The object receives shadows only.

### Members

#### static constant Cesium.ShadowMode.CAST_ONLY : Number
Scene/ShadowMode.js 30

The object casts shadows only.

Default Value: `2`

#### static constant Cesium.ShadowMode.DISABLED : Number
Scene/ShadowMode.js 14

The object does not cast or receive shadows.

#### static constant Cesium.ShadowMode.ENABLED : Number
Scene/ShadowMode.js 22

The object casts and receives shadows.

Default Value: `1`

#### static constant Cesium.ShadowMode.RECEIVE_ONLY : Number
Scene/ShadowMode.js 38

The object receives shadows only.

Default Value: `3`