<a-plane>
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 plane makes it easy to add flat surfaces to a scene. It wraps an entity that contains geometry
and material
components.
Attribute | Default Value | Component Mapping |
---|---|---|
color | gray | material.color |
height | 1 | geometry.height |
metalness | 0.0 | material.metalness |
opacity | 1.0 | material.opacity |
roughness | 0.5 | material.roughness |
shader | standard | material.shader |
src | None | material.src |
translate | None | geometry.translate |
transparent | None | geometry.transparent |
width | 1 | material.width |
Examples
A green plane:
<a-plane rotation="0 -45 10" height="10" color="green"></a-plane> |