Since the concept was difficult to explain in words for someone who's not quite familiar with shader, I described it in pictures.
I'm currently using Unity and it seems Shaderlab is the best choice to accomplish this.
To shader masters, this seems like quite a simple trick, but as beginner, I've been struggling to find right keywords and tutorials to accomplish this.
I wish someone could explain the concept behind this shader trick.
Thank you in advance.