My procedural game has blocks that can be selected. When selected, I'd like them to to fade a bit; I can achieve such an effect in Shader Graph by applying a Blend → Lighten operation to the block shader (blending with white).
However I'm a bit stuck on how I would make this effect happen dynamically when the block is selected. All blocks within a chunk are part of the same mesh; I'm using a separate submesh for each different block type. So although I've considered using a property to conditionally apply the blend operation, I believe that would affect all the other blocks using that shader?
I've considered making a selected variant of each shader and swapping them upon object selection, but there are dozens of block types so I don't know if that's the best method.
What is the recommended approach here? Is there a way I can simply "apply" some shader operation on top of whatever the existing shader is?