Files
GoblinRaid/Packages/com.occasoftware.super-simple-skybox/Runtime/SkyObjects/SunStatic.cs
Caleb Sandford deQuincey e2b97323a3 Started building first moment
2025-10-31 20:33:41 +00:00

15 lines
354 B
C#

using UnityEngine;
namespace OccaSoftware.SuperSimpleSkybox.Runtime
{
[ExecuteAlways]
[AddComponentMenu("OccaSoftware/Super Simple Skybox/Sun (Static)")]
public class SunStatic : MonoBehaviour
{
private void Update()
{
Shader.SetGlobalVector(ShaderParams._SunDirection, -transform.forward);
}
}
}