HeatMap Shader Experiments

This commit is contained in:
Thorbjoern
2025-06-19 14:25:44 +02:00
parent d8a6b8cc5a
commit 9bf311641e
18 changed files with 1871 additions and 882 deletions
@@ -24,6 +24,11 @@ public class EyeTrackingCollisionPoints : MonoBehaviour
if ( hitPoint != null && Physics.Raycast(transform.position, rayCastDirection, out hit, rayDistance, layersToInclude))
{
hitPoint.transform.position = new Vector3(hit.point.x, hit.point.y, hit.point.z);
if (hit.collider.GetType() == typeof(MeshCollider))
{
hit.collider.gameObject.GetComponent<QuadScript>().addHitPoint(hit.textureCoord.x, hit.textureCoord.y);
}
}
}