soundvision/UnityProject/Assets/Scripts/Kinect/KinectPointCloud.cs
2019-11-09 16:51:15 +01:00

21 lines
494 B
C#

using UnityEngine;
using UnityEngine.Experimental.VFX;
namespace cylvester
{
public class KinectPointCloud : MonoBehaviour
{
[SerializeField] private VisualEffect visualEffect;
public void OnDepthImageReceived(Texture2D texture)
{
visualEffect.SetTexture("DepthImage", texture);
}
public void OnMovementImageReceived(Texture2D texture)
{
visualEffect.SetTexture("MovementImage", texture);
}
}
}