Advertisement
Guest User

ShaderInteractor.cs

a guest
Dec 23rd, 2020
12,007
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class ShaderInteractor : MonoBehaviour
  4. {
  5.     // Update is called once per frame
  6.     void Update()
  7.     {
  8.         Shader.SetGlobalVector("_PositionMoving", transform.position);
  9.     }
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement