Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    voxel-oculuspublic

    voxel-oculus

    Oculus stereo view for voxeljs.

    Example

    var oculus = require('voxel-oculus')
    var effect = new oculus(game, {distortion: 0.2, separation: 5});

    Parameters

    • separation: eye separation
    • distorsion: distorsion factor to compensate lens distortion
    • aspectFactor: modify width/height

    E.g for 3d TV: distorsion=0 and aspectFactor=0.5

    Keywords

    none

    install

    npm i voxel-oculus

    Downloadsweekly downloads

    2

    version

    0.1.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar