microsoft / HoloJS

Provides a framework for creating holographic apps using JavaScript and WebGL.
MIT License
1.19k stars 114 forks source link

Use a perspective camera in the ThreeJS sample when not running in a holographic environment #34

Closed Almost-Done closed 7 years ago

Almost-Done commented 7 years ago

window.experimentalHolographic should be used to check when running in a holographic environment. If it is not set, fallback to the perspective camera.

This also fixes the JS warnings for failing to invert a matrix.