aframe-stl-model
v0.1.2
Published
A STL files component for A-Frame.
Downloads
3
Maintainers
Readme
aframe-stl-model
A STL files component for A-Frame. (a fork of darkwave/aframe-stl-model-component)
For A-Frame.
API
| Property | Description | Default Value | | -------- | ----------- | ------------- | | src | a-asset-item ref | |
Installation
Install via npm:
npm install aframe-stl-model
Then require and use.
import 'aframe';
require('aframe-stl-model');
<a-scene>
<a-assets>
<a-asset-item response-type="arraybuffer" id="house" src="/house.stl"></a-asset-item>
</a-assets>
<a-entity stl-model="src: #house" scale="0.02 0.02 0.02" material="color: #f0f; roughness: 1; metalness: 0"></a-entity>
</a-scene>