Download

Is there a way to distinguish if a pixel is on the edges of a vertex in the material?

I want to do something like this for some assets:

My issues are 2 right now:

  1. Create the wireframe: this could be done by replicating the MESH and giving one instance a Material with Wireframe attribute turned on… but i want to know if there’s a way to do this on a single material
  2. The “dots” on the vertices: I’m at a loss here, i think a geometry shader could help me, but the material editor has no support for them as far as i know… I could create a .usf and a Shader Factory, but i wan’t to know if there’s another way to solve this that i’m not thinking right now.

Pretty sure the solution is super simple and i’m just glassing over it.

Thanks!