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?
Asked
Viewed
82 times
final_color.rgb = lerp(block_texture_color.rgb,damage_texture_color.rgb,damage_texture_color.a * damage_factor)
anddamage_factor
is a float 0 or 1 depending if you want to see the block damaged or not (you can pass it trough alpha color from vertex color or via a uniform \$\endgroup\$ – Raxvan Dec 29 '14 at 13:40