12 lines
231 B
C#
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);
|
|
}
|
|
}
|