Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added url parameters for the demo
- Loading branch information
Showing
4 changed files
with
902 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
Oops, something went wrong.