15 lines
281 B
C#
15 lines
281 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[ExecuteAlways]
|
|
|
|
public class GetGlobalMatrixLite : MonoBehaviour
|
|
{
|
|
|
|
void Update()
|
|
{
|
|
Shader.SetGlobalMatrix("_LightMatrix", Matrix4x4.Rotate(transform.rotation));
|
|
}
|
|
}
|