OldBlueWater/BlueWater/Assets/Distant Lands/Cozy Weather/Contents/Scripts/Utility/Auxillary/CozySetMoonDirection.cs

19 lines
365 B
C#
Raw Normal View History

2023-09-13 05:07:40 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace DistantLands.Cozy
{
[ExecuteAlways]
public class CozySetMoonDirection : MonoBehaviour
{
// Update is called once per frame
void Update()
{
Shader.SetGlobalVector("CZY_MoonDirection", -transform.forward);
}
}
}