Files
3d-fengji/Assets/Enviro 3 - Sky and Weather/Scripts/Runtime/Modules/Sky/EnviroHDRPSky.cs
2026-05-20 17:05:47 +08:00

33 lines
765 B
C#

#if ENVIRO_HDRP
using System;
using UnityEngine.Rendering.HighDefinition;
namespace UnityEngine.Rendering.HighDefinition
{
[VolumeComponentMenu("Sky/Enviro 3 Skybox")]
[SkyUniqueID(990)]
public class EnviroHDRPSky : SkySettings
{
public override int GetHashCode()
{
int hash = base.GetHashCode();
unchecked
{
}
return hash;
}
public override int GetHashCode(Camera camera)
{
// Implement if your sky depends on the camera settings (like position for instance)
return GetHashCode();
}
public override Type GetSkyRendererType() { return typeof(EnviroHDRPSkyRenderer); }
}
}
#endif