Files
beyond/Assets/ThirdParty/Lux URP Essentials/Demos/Scripts/CheckSettings.cs
2024-12-18 15:25:43 +01:00

38 lines
1004 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
//using UnityEngine.Rendering.LWRP;
namespace LuxLWRPEssentials.Demo {
public class CheckSettings : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
UnityEngine.Rendering.Universal.UniversalRenderPipelineAsset lwrp = GraphicsSettings.defaultRenderPipeline as UnityEngine.Rendering.Universal.UniversalRenderPipelineAsset;
if (lwrp.supportsCameraDepthTexture == true) {
Debug.Log("CameraDepthTexture supported.");
}
else {
Debug.Log("CameraDepthTexture not supported.");
}
if (lwrp.supportsCameraOpaqueTexture == true) {
Debug.Log("CameraOpaqueTexture supported.");
}
else {
Debug.Log("CameraOpaqueTexture not supported.");
}
}
// Update is called once per frame
void Update()
{
}
}
}