Back to Aframe

background

docs/components/background.md

1.7.1961 B
Original Source

The background component sets a basic color background of a scene that is more performant than a-sky since geometry is not created. There are no undesired frustum culling issues when a-sky is further than the far plane of the camera. There are no unexpected occlusions either with far objects that might be behind of the sphere geometry of a-sky.

Example

The example below sets the background color to red and use lighting estimation for AR.

html
<a-scene background="color: red"></a-scene>

Properties

PropertyDescriptionDefault Value
colorColor of the scene background.black
transparentBackground is transparent. The color property is ignored.false