Cozy Wather + buld systeme

This commit is contained in:
2026-07-07 16:43:51 +02:00
parent 031ac42e5d
commit 6b26ae3376
2140 changed files with 3482825 additions and 2252 deletions
@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace DistantLands.Cozy
{
[ExecuteAlways]
public class CozySetMoonDirection : MonoBehaviour
{
CozyWeather weatherSphere;
// Update is called once per frame
void Update()
{
if (weatherSphere == null)
weatherSphere = CozyWeather.instance;
weatherSphere.moonDirection = -transform.forward;
Shader.SetGlobalVector("CZY_MoonDirection", -transform.forward);
}
}
}