N
N
namee2020-01-17 12:08:05
Shaders
namee, 2020-01-17 12:08:05

How to determine the color of a neighboring point?

Good day everyone!
Introductory unity3d. shader.
there is a mesh with a bunch of submesh.
Each submesh has a color and let's say there is no texture.
How to determine that the color of the current point and one of the neighboring points is different?
Or how to determine that a neighboring point belongs to another submesh.
Or another way to determine that this point is a boundary point in a submesh.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2020-01-17
@xmoonlight

Collider - did not help?
If it's not dynamic, immediately calculate the entire mesh in matrix format.
Mesh.GetIndices(int submesh)
Mesh.GetTriangles(int submesh)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question