- Home /
Get visible part shape of object in screen
Good day everyone. I'm trying to create a highlight script, which only highlights the currently visible part of an object. For that I am looking for a way, to get the visible shape of the object.
Is there a way to get this shape from the screen or the renderer? Because I'm not that good with filters, I want to do it with a screen overlay.
Greetings Chillersanim
hi, $$anonymous$$aybe you could look at the shaders. i think it's the best to do this.
As far as I understood, a shader only affects the material of an object, doesn't it? But then I get a problem, when a single mesh contains multiple materials. Please tell me, if I am thinking the wrong way. ;)
There différent kind of shaders. the surface shader which affect the material of the object ans react to the lighting. the others are vertex and fragment shaders wich affect the pixel on the screen. you should give a look to the documentation. but be warned, this subject is a bit hard if you are a beginner : http://docs.unity3d.com/Documentation/$$anonymous$$anual/Shaders.html
Thank you for your help. I looked into it and how you said, it is really heavy. I searched for an other tutorial and found this great one from that I learned the basics. But however, I did not get it working, that a material affects all other materials, or overlay each other material. Ins$$anonymous$$d, it is or fully visible, or invisible. Is there a possibility to make it partially overlay all other materials on an object?
Your answer