comparison Orchestland/Assets/LeapMotion/Scripts/Utils/EnableDepthBuffer.cs @ 1:f7675884f2a1

Add Orchestland project
author Daiki OYAKAWA <e135764@ie.u-ryukyu.ac.jp>
date Fri, 17 Jul 2015 23:09:20 +0900
parents
children
comparison
equal deleted inserted replaced
0:347d21cdfc22 1:f7675884f2a1
1 using UnityEngine;
2 using System.Collections;
3
4 [ExecuteInEditMode]
5 public class EnableDepthBuffer : MonoBehaviour {
6
7 void Awake() {
8 GetComponent<Camera>().depthTextureMode = DepthTextureMode.Depth;
9 }
10 }