23 lines
492 B
C#
23 lines
492 B
C#
using UnityEngine;
|
|
using UnityEngine.Experimental.VFX;
|
|
|
|
namespace cylvester
|
|
{
|
|
public class KinectPointCloud : MonoBehaviour
|
|
{
|
|
[SerializeField] private VisualEffect visualEffect;
|
|
|
|
public void OnDepthImageReceived(Texture texture)
|
|
{
|
|
visualEffect.SetTexture("DepthImage", texture);
|
|
}
|
|
|
|
public void OnMovementImageReceived(Texture texture)
|
|
{
|
|
visualEffect.SetTexture("MovementImage", texture);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|