|
|
|
|
|
|
ARPlane m_ARPlane; |
|
|
|
Material m_FeatheredPlaneMaterial; |
|
|
|
|
|
|
|
private void Awake() |
|
|
|
void Awake() |
|
|
|
{ |
|
|
|
m_PlaneMeshVisualizer = GetComponent<ARPlaneMeshVisualizer>(); |
|
|
|
m_ARPlane = GetComponent<ARPlane>(); |
|
|
|
|
|
|
private void OnEnable() |
|
|
|
void OnEnable() |
|
|
|
private void OnDisable() |
|
|
|
void OnDisable() |
|
|
|
private void ARPlaneMeshVisualizer_meshUpdated(ARPlaneMeshVisualizer planeMeshVisualizer) |
|
|
|
void ARPlaneMeshVisualizer_meshUpdated(ARPlaneMeshVisualizer planeMeshVisualizer) |
|
|
|
{ |
|
|
|
GenerateBoundaryUVs(planeMeshVisualizer.mesh); |
|
|
|
} |
|
|
|
|
|
|
/// is fairly uniform and the center vert is close to the barycentric center.
|
|
|
|
/// </remarks>
|
|
|
|
/// <param name="mesh">The <c>Mesh</c> generated by <c>ARPlaneMeshVisualizer</c></param>
|
|
|
|
public void GenerateBoundaryUVs(Mesh mesh) |
|
|
|
void GenerateBoundaryUVs(Mesh mesh) |
|
|
|
{ |
|
|
|
int vertexCount = mesh.vertexCount; |
|
|
|
|
|
|
|