Generates heightmaps, and shadow maps using JS and canvas.
- Improve the shadow map rendering
- modernize primary src files
Use as a web component, source in webcomponent
<script type="module" src="/height-map.js"></script>
<body>
<height-map></height-map>
</body>
Attribute | Options | Default | Description |
---|---|---|---|
size |
int | 128 |
Power of 2 size of element |
unit |
int | 1 |
Resolution size of pixels |
rough |
int | 5 |
Roughness value for terrain generation |