@@ -33,13 +33,21 @@ totally indebted to [Amit's](http://www.redblobgames.com/grids/hexagons/) expana
33
33
| NODATA_VALUE | Cells with this value will not be rendered | -999 |
34
34
| tileScale | How much of each hex grid should be occupied by the rendered tile? | 0.7 |
35
35
| showZerovalCells | Render cells with value=0? | false |
36
- | metalness | Control material appearance. | 0.2 |
37
36
| hexDensity | Density of hex grid relative to input data. Using higher values, up to 1, will create more hexagons. | 0.3 |
38
37
| hexDensityMobile | On mobile devices this value will be used instead of hexDensity | 0.1 |
39
38
| shading | Material shading model: "flat" or "smooth" | flat |
39
+ | emissive | Emissive color. Used for material | #000000
40
40
| emissiveIntensity | Control brightness of the material | 0.2 |
41
+ | metalness | Control material appearance. | 0.2 |
42
+ | rougness | Control material rougness | 0.5 |
43
+ | shininess | Control material shininess | 30 |
44
+ | specular | Control material specular color | #111111
45
+ | blending | THREE.js blending mode, as string | THREE.NormalBlending |
41
46
| opacity | Opacity of the object. | 0.75 |
42
47
48
+
49
+
50
+
43
51
### Color Palettes ###
44
52
There are a few built-in palettes:
45
53
` greypurple ` , ` aquablues ` , ` reds ` , ` redblue ` , ` RdYlBu ` , ` grass ` , ` winter ` , ` greens ` , ` autumn ` , ` hot ` , ` viridis ` , ` plasma ` , ` parula ` , and ` cool ` .
@@ -80,16 +88,14 @@ This component requires D3 and the von-grid hex grid library.
80
88
<script src="//d3js.org/d3.v4.min.js"></script>
81
89
<script src="https://morandd.github.io/aframe-hexgraph-hexmap/hex-grid.min.js"></script>
82
90
<script src="https://morandd.github.io/aframe-hexgraph-hexmap/aframe-hexgraph-hexmap.js"></script>
83
- <script src="https://morandd.github.io/aframe-hexgraph-hexmap/HexGridBufGeom.js"></script>
84
91
85
92
```
86
93
87
94
88
95
89
96
## TODO ##
90
97
- Eliminate dependency on von-grid. At this point so much of the hex logic has been rewritten we do not use much from that library any more.
91
- - Combine the two .js's into one file
92
- - Add options to tune material. Or change to check if a material= component is attached to the same entity, and then use that instead.
98
+ - If AFrame adds support for vertexColors=THREE.VertexColoring to the material component, change to read material options from a ` material ` component
93
99
- Support JSON files that contain X/Y/Value tuples, ie scattered instead of continuous data
94
100
95
101
0 commit comments