<a-sky>
Note: This documentation is for the old 0.1.0 version of A-Frame. Check out the documentation for the current 1.5.0 version
The sky primitive is a large textured sphere that makes it easy to add a background to a scene. It wraps an entity that contains geometry
and material
components.
Attribute | Default Value | Component Mapping |
---|---|---|
color | white | material.color |
radius | 5000 | geometry.radius |
segments-height | 64 | geometry.segmentsHeight |
segments-width | 64 | geometry.segmentsWidth |
src | None | material.src |
Image format
To ensure a seamless background, images must use an equirectangular projection. The Flickr Equirectangular is one source of compatible images, or you can search for CC-licensed images.
Examples
A basic sky:
<a-sky src="sky.png"></a-sky> |