Skip to content

Instantly share code, notes, and snippets.

View dariol's full-sized avatar

Dario Laverde dariol

View GitHub Profile
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
using HTC.UnityPlugin.Vive;
using OpenCVForUnity;
using Valve.VR;
using System;
using System.Runtime.InteropServices;
public class ComicViveFilter : MonoBehaviour
@dariol
dariol / SteamVR_Render_edit.cs
Last active June 12, 2017 06:14
SteamVR_Render.cs workaround to allow arbitrary 3rd controller
void Awake()
{
#if (UNITY_5_3 || UNITY_5_2 || UNITY_5_1 || UNITY_5_0)
var go = new GameObject("cameraMask");
go.transform.parent = transform;
cameraMask = go.AddComponent<SteamVR_CameraMask>();
#endif
if (System.IO.File.Exists(externalCameraConfigPath)) {
{
if (externalCamera == null) {