11 lines
191 B
C#
11 lines
191 B
C#
|
using UnityEngine;
|
||
|
|
||
|
[ExecuteInEditMode]
|
||
|
public class RenderDepth : MonoBehaviour
|
||
|
{
|
||
|
private void OnEnable()
|
||
|
{
|
||
|
GetComponent<Camera>().depthTextureMode = DepthTextureMode.DepthNormals;
|
||
|
}
|
||
|
}
|