- Home /
Is it possible for a shader to know the name of the mesh?
I am wondering if it is possible for a shader to know the name of the mesh/surface it is shading without setting it from a script.
for example I have a shader that I can set a rotational offset on the material, I would prefer to have this automated by the name of the mesh/surface, and reduce 4 materials down to 1.
Comment
Your answer
Follow this Question
Related Questions
How to combine several Materials into one? 0 Answers
Mesh Clipping / Cross Sections 1 Answer
Fragment Shader not applyable at runtime? 1 Answer
Change Z offset of lines 1 Answer