Skip to content

Commit 5827127

Browse files
committed
Add comment
1 parent 174e1ba commit 5827127

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/MRTK/Core/Definitions/InputSystem/MixedRealityRaycastHit.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public MixedRealityRaycastHit(bool raycastValid, RaycastHit hitInfo)
5252
textureCoord = Vector2.zero;
5353
}
5454

55+
// This checks for TexCoord1, since textureCoord2 and lightmapCoord both query that index
56+
// via CalculateRaycastTexCoord(collider, m_UV, m_Point, m_FaceID, 1); (the last parameter is the index)
5557
if (meshCollider.sharedMesh.HasVertexAttribute(UnityEngine.Rendering.VertexAttribute.TexCoord1))
5658
{
5759
textureCoord2 = hitInfo.textureCoord2;

0 commit comments

Comments
 (0)