Files
SoulliesOfficial a635ec4221 GPU优化
2026-02-27 08:21:00 -05:00

15 lines
263 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteAlways]
public class GetGlobalMatrix : MonoBehaviour
{
void Update()
{
Shader.SetGlobalMatrix("_LightMatrix", Matrix4x4.Rotate(transform.rotation));
}
}