SHARE
TWEET

Interactor.cs

a guest Apr 29th, 2019 206 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 Interactor : MonoBehaviour
  6. {  
  7.     [SerializeField]
  8.     float radius;
  9.  
  10.     // Update is called once per frame
  11.     void Update()
  12.     {
  13.         Shader.SetGlobalVector("_Position", transform.position);
  14.         Shader.SetGlobalFloat("_Radius", radius);
  15.     }
  16. }
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