Skip to content

Instantly share code, notes, and snippets.

@mswf
mswf / StereoController.cs
Created August 30, 2016 15:09
A modified version of the StereoController.cs, from the Google VR release 0.9.1. I spliced in a workaround to a Unity bug described here https://github.com/googlevr/gvr-unity-sdk/issues/283. It can be disabled by removing the #define GOOGLE_VR_HACK.
// Copyright 2014 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,