three-dolphin-geometry-loader
v1.0.2
Published
loads a sick three.js dolphin geometry
Downloads
13
Maintainers
Readme
three-dolphin-geometry-loader
uses three-stl-loader and rusty smith's dolphin.stl to load a sick dolphin-shaped THREE.BufferGeometry
install
npm i --save three-dolphin-geometry-loader
usage
var THREE = require('three')
var loader = require('./three-dolphin-geometry-loader')(THREE)
...
loader(function (geometry) {
var material = new THREE.MeshNormalMaterial()
var dolphin = new THREE.Mesh(geometry, material)
scene.add(dolphin)
})