ZeroVR/ZeroPacientVR/Assets/1.Content/Modeles/scryptes/DepthTexture.cs

16 lines
281 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class DepthTexture : MonoBehaviour {
private Camera cam;
void Start () {
cam = GetComponent<Camera>();
cam.depthTextureMode = DepthTextureMode.Depth;
}
}