Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
416 B

  1. namespace VRTK
  2. {
  3. using UnityEngine;
  4. public class VRTK_TunnelEffect : MonoBehaviour
  5. {
  6. protected Material material;
  7. public virtual void SetMaterial(Material material)
  8. {
  9. this.material = material;
  10. }
  11. protected virtual void OnRenderImage(RenderTexture src, RenderTexture dest)
  12. {
  13. Graphics.Blit(src, dest, material);
  14. }
  15. }
  16. }