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.
↧