Files
ichni_Official/Assets/Suggo Creations/RETROWAVE SKIES/Scripts/GetGlobalMatrix.cs

15 lines
263 B
C#
Raw Normal View History

2026-02-27 08:21:00 -05:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteAlways]
public class GetGlobalMatrix : MonoBehaviour
{
void Update()
{
Shader.SetGlobalMatrix("_LightMatrix", Matrix4x4.Rotate(transform.rotation));
}
}