CD-ROOM/Assets/Scripts/Player/UpdateShader.cs
Gerard Gascón 341a877b4a init
2025-04-24 17:37:25 +02:00

12 lines
231 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UpdateShader : MonoBehaviour
{
void Update()
{
Shader.SetGlobalVector("Player_position", transform.position);
}
}