Hi there,
I’m looking for a shader which highlights a specific part of a mesh. For example the terrain tool has a blue glow under the mouse. Can anybody help me achieve this?
I’ve only found shaders that either highlight the entire object, or just blend 2 texures overal. I would like to blend 2 textures, but specify the position and perhaps scale of the second texture.
Thanks in advance!
Terrain tool is another plane object which floats over the actual terrain.
What you need is something else, and many ways to do it but you need to be more specific about what kind of mesh are you talking about.
Thanks for the reply 
The model will be a fairly complex one. The idea is that the user will see a model of a (simple) body, and he or she can select an area. The body will be in 2d (just a plane). I’d just like to show a highlight just like the terrain tool only then wrapped on the body, not highlight specific parts or something.
easiest way is to divide your mesh into multiple meshes(planes?) which the user select individually and highlight them. No need for messy shaders here.
I understand, but i’d really like to highlight an entire area. Cant you set a texture x/y in a shader easily?
Well, as your object is just a texture on a plane, you can write a simple script that paints on a second texture with getpixels setpixels commands.
And with one of those simple blending shaders, you can then blend this painted texture on top of your plane object.
Im not sure if it would be fast or not.
You may want to consider using a Projector.
2 Likes
Holy shit, thats exactly what i need! Thank you a lot 