How to keep the same visual effect of two objects?

Hi Drcmda:
same question

I found a solution that can solve my problem, the implementation of this seems to be inelegant