- Home /
Overlaying a Darkening Texture over Certain UVs with a Shader
I have a base material that has a texture with multiple sprites that overlay onto a mesh by assigning the proper uvs. I'm a complete and utter noob when it comes to shader programming, but I need to make it so that I can darken an outline particular mesh on the mesh when the player is looking at it. I also need to have another texture that animates through by changing uv positions that also just darkens based on the overlaying texture.
Because I am almost definitely not using the proper language here, the practical example would be something like a Minecraft clone, and I need to outline blocks and show a breaking overlay on blocks when breaking. I have access to all the information on the C# side with knowing what voxel I'm looking at, but I don't know how to translate this into shader functionality.
Not trying to get a step by step how to (although that'd be great), just have looked around and can't find information, so anywhere to start would be great. Thank you.
Your answer
![](https://koobas.hobune.stream/wayback/20220613033947im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why is my UV'd texture displaying wrapped with the wrong scale? 0 Answers
Uv's not set in unity according to maya 0 Answers
Shader, 2 Textures on one UV Map 1 Answer
How do you dynamically tile sub-portions of a plane? 1 Answer
water texture overlay 0 Answers