soundvision/UnityProject/Assets/Scripts/Visualizer/IRPanelBehaviour.cs
Chikashi Miyama 15ed32aea0 fix namespace
2019-10-31 10:43:47 +01:00

24 lines
640 B
C#

using UnityEngine;
namespace cylvester
{
class IRPanelBehaviour : MonoBehaviour
{
[SerializeField] private KinectManagerBehaviour kinectManagerBehaviour = null;
[SerializeField] private GameObject panel = null;
private Renderer renderer_;
private static readonly int KinectTexture = Shader.PropertyToID("_kinectTexture");
void Start()
{
renderer_ = panel.GetComponent<Renderer>();
}
void Update()
{
renderer_.material.SetTexture(KinectTexture, kinectManagerBehaviour.KinectSensor.InfraredCamera.InfraredTexture);
}
}
}