13 lines
221 B
C#
13 lines
221 B
C#
using UnityEngine;
|
|
|
|
namespace INab.BetterFog.BIRP
|
|
{
|
|
public class CameraDepth : MonoBehaviour
|
|
{
|
|
private void OnEnable()
|
|
{
|
|
base.gameObject.GetComponent<Camera>().depthTextureMode = DepthTextureMode.Depth;
|
|
}
|
|
}
|
|
}
|