Mountain terrain in A-Frame using randomly-generated height maps
npm install aframe-mountain-componentMountain component and primitive for A-Frame.
Uses Perlin noise to create a height map, create a shaded texture from that
height map using a , and using the height map to create vertices on a
BufferGeometry.
| Property | Description | Default Value |
| -------- | ----------- | ------------- |
| color | Base color of mountain. | rgb(92, 32, 0) |
| shadowColor | Diffuse color of mountain. | rgb(128, 96, 96) |
| sunPosition | Sun position to shade mountain. | 1, 1, 1 |
#### Browser Installation
Install and use by directly including the browser files:
``html
#### NPM Installation
Install via NPM:
`bash
npm install aframe-mountain-component
`Then register and use.
`js
require('aframe');
require('aframe-mountain-component');
``