Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I'm currently creating a voxel game like Minecraft. To display the damage of blocks, I want to combine the alpha channel of one part of my texture map with the actual texture (like Minecraft does), how could I do that in Unity?
final_color.rgb = lerp(block_texture_color.rgb,damage_texture_color.rgb,damage_texture_color.a * damage_factor)
Required, but never shown