SHARE
TWEET

ShaderPosition.cs

a guest Jun 9th, 2018 2,400 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top