2026-06-09 룸 프로토타입 디자인 (진행중)

This commit is contained in:
skrwns304@gmail.com
2026-06-09 20:53:26 +09:00
parent 3a18351d17
commit 4c955dafc3
3544 changed files with 226503 additions and 17 deletions

View File

@@ -0,0 +1,22 @@
using System;
using UnityEngine;
namespace StylizedWater3
{
[ExecuteAlways]
[AddComponentMenu("Stylized Water 3/Global Wave Origin Offset")]
public class SetGlobalWaveOriginOffset : MonoBehaviour
{
private readonly int _GlobalWaveOriginOffset = Shader.PropertyToID("_GlobalWaveOriginOffset");
private void Update()
{
Shader.SetGlobalVector(_GlobalWaveOriginOffset, this.transform.position);
}
private void OnDisable()
{
Shader.SetGlobalVector(_GlobalWaveOriginOffset, Vector3.zero);
}
}
}