three-dolphin-geometry-loader

1.0.2 • Public • Published

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)
})

lol

Package Sidebar

Install

npm i three-dolphin-geometry-loader

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • data-doge