You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `shdadow-camera-automatic` configuration maps to `light.shadowCameraAutomatic` which tells the light to automatically update the shadow camera to be the minimum size and position to encompass the target elements.
95
101
96
102
### Hemisphere
97
103
@@ -185,20 +191,21 @@ is very helpful to **[use the A-Frame Inspector to configure shadows][inspector]
185
191
Light types that support shadows (`point`, `spot`, and `directional`) include
186
192
additional properties:
187
193
188
-
| Property | Light type | Description | Default Value |
| castShadow || Whether this light casts shadows on the scene. | false |
191
-
| shadowBias || Offset depth when deciding whether a surface is in shadow. Tiny adjustments here (in the order of +/-0.0001) may reduce artifacts in shadows. | 0 |
192
-
| shadowCameraBottom |`directional`| Bottom plane of shadow camera frustum. | -5 |
193
-
| shadowCameraFar || Far plane of shadow camera frustum. | 500 |
| shadowCameraLeft |`directional`| Left plane of shadow camera frustum. | -5 |
196
-
| shadowCameraNear || Near plane of shadow camera frustum. | 0.5 |
197
-
| shadowCameraRight |`directional`| Right plane of shadow camera frustum. | 5 |
198
-
| shadowCameraTop |`directional`| Top plane of shadow camera frustum. | 5 |
199
-
| shadowCameraVisible || Displays a visual aid showing the shadow camera's position and frustum. This is the light's view of the scene, used to project shadows. | false |
200
-
| shadowMapHeight || Shadow map's vertical resolution. Larger shadow maps display more crisp shadows, at the cost of performance. | 512 |
| castShadow || Whether this light casts shadows on the scene. | false |
197
+
| shadowBias || Offset depth when deciding whether a surface is in shadow. Tiny adjustments here (in the order of +/-0.0001) may reduce artifacts in shadows. | 0 |
198
+
| shadowCameraAutomatic |`directional`| Automatically configure the Bottom, Top, Left, Right and Near of a directional light's shadow map, from an element ||
199
+
| shadowCameraBottom |`directional`| Bottom plane of shadow camera frustum. | -5 |
200
+
| shadowCameraFar || Far plane of shadow camera frustum. | 500 |
| shadowCameraLeft |`directional`| Left plane of shadow camera frustum. | -5 |
203
+
| shadowCameraNear || Near plane of shadow camera frustum. | 0.5 |
204
+
| shadowCameraRight |`directional`| Right plane of shadow camera frustum. | 5 |
205
+
| shadowCameraTop |`directional`| Top plane of shadow camera frustum. | 5 |
206
+
| shadowCameraVisible || Displays a visual aid showing the shadow camera's position and frustum. This is the light's view of the scene, used to project shadows. | false |
207
+
| shadowMapHeight || Shadow map's vertical resolution. Larger shadow maps display more crisp shadows, at the cost of performance. | 512 |
0 commit comments