Skip to content

Commit

Permalink
Added aspectFactor
Browse files Browse the repository at this point in the history
Added url parameters for the demo
  • Loading branch information
troffmo5 committed Jan 30, 2013
1 parent c921519 commit 20df72b
Show file tree
Hide file tree
Showing 4 changed files with 902 additions and 8 deletions.
12 changes: 10 additions & 2 deletions README.md
@@ -1,11 +1,19 @@
voxel-oculus
============

Oculus stereo view for voxeljs
Oculus stereo view for voxeljs.

## example
## Example

```javascript
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

0 comments on commit 20df72b

Please sign in to comment.