- Home /
How to return from shader the indexes of triangles/vertices that was actually rendered?
I need to do post render analysis, on the vertices themselves (not on texture) and i need this data back to MeshRenderer in c# script as array of indexes that was not discarded during render process.
I didn't find any solution for this.
@mendi80, We have the exact same need (post processing on element) and we are facing the exact same problem (how to identify the element in the shader code to set the right color) Did you find a solution , or a workaround (to set a specific color on each triangle)? Thanks in advance,$$anonymous$$endi80, We have the exact same need for our project, and we have the exact same question. Did you find a solution on your side, or do you have a workaround? Thanks in advance
If you really think about "returning values from shader" then no. It's not possible.
Your answer
Follow this Question
Related Questions
Cube botttom transparent with shader? 1 Answer
Ways of modificating mesh triangles 3 Answers
can 5 verts and 4 triangles be done on a square texture? 1 Answer
Best way to transition one mesh to another with the option to change the target mesh 0 Answers
Realtime mesh triangles do not appear depending on camera angle 1 Answer