Advertisement
Guest User

ShaderPosition.cs

a guest
Jun 9th, 2018
5,284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class ShaderPosition : MonoBehaviour
  6. {
  7.     // Update is called once per frame
  8.     void Update()
  9.     {
  10.         Shader.SetGlobalVector("_Position", transform.position);
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement