three-reflector

1.0.2 • Public • Published

three-reflector

@Slayvin THREE.Reflector repackaged as a node module

install

npm i --save three-reflector

usage

 
 
 
var THREE = require('three')
var STLLoader = require('three-reflector')(THREE)
 
var mirror = new Reflector( geometry, {
 
                //Config example
 
                clipBias: 0.003,
                textureWidth: window.innerWidth * window.devicePixelRatio,
                textureHeight: window.innerHeight * window.devicePixelRatio,
                color: 0x777777,
                recursion: 1
 
} );
 
scene.add( mirror );
 

/three-reflector/

    Package Sidebar

    Install

    npm i three-reflector

    Weekly Downloads

    30

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    10.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • luizgustavompinto