Skip to content

Commit ca514de

Browse files
committed
WIP
1 parent ce2e6ba commit ca514de

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

‎docs/primitives/common-attributes.md‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
---
2-
title: Material Attributes
2+
title: Common Attributes
33
type: primitives
44
layout: docs
55
parent_section: primitives
66
order: 2
77
---
88

9-
Many of the primitives are entities that compose a geometric mesh, meaning they primarily prescribe the [geometry](../components/geometry.md) and [material](../components.material.md) components. Most of the mesh primitives share common attributes, especially for mapping to the material component. These common attributes won't be described in individual documentation pages for each primitive so they will be listed here.
9+
Many of the primitives they primarily prescribe the [geometry][geometry] and
10+
[material][material] components to create a mesh. All of the mesh primitives
11+
share common attributes relating to material component.
1012

1113
## Example
1214

13-
`<a-box>`, `<a-cylinder>`, `<a-sphere>` are some primitives that prescribe a geometric mesh. They share common attributes relating to the material component:
15+
`<a-box>`, `<a-cylinder>`, `<a-sphere>` are some primitives that represent a
16+
mesh. They share common attributes relating to the material component:
1417

1518
```html
1619
<a-box opacity="0.5" shader="flat" src="dirt.png"></a-box>
@@ -20,6 +23,9 @@ Many of the primitives are entities that compose a geometric mesh, meaning they
2023

2124
## Attributes
2225

26+
When noted in the individual primitive documentation pages, these attributes
27+
will also be available to the primitive.
28+
2329
| Attribute | Component Mapping | Default Value |
2430
|-------------|----------------------|---------------|
2531
| color | material.color | gray |
@@ -29,3 +35,6 @@ Many of the primitives are entities that compose a geometric mesh, meaning they
2935
| shader | material.shader | standard |
3036
| src | material.src | None |
3137
| transparent | material.transparent | true |
38+
39+
[geometry]: ../components/geometry.md
40+
[material]: ../components/material.md

0 commit comments

Comments
 (0)