#Any way to draw a Node twice without duplication?

1 messages · Page 1 of 1 (latest)

quasi flint
#

I want to draw a player twice in two different z_indices. I don't want to duplicate the player because it has other nodes that I don't want duplicated.

The reason is I am creating a water reflection shader that reads the SCREEN_TEXTURE to mirror it. I need to draw the player first at a lower z_index in order for it to show up when I use SCREEN_TEXTURE. However, I want the player to stand on top of the water, so I need to draw the player again at a higher z_index than the water.

Is the only way to have double the sprites in the player?

ionic tapir
#

You could copy and paste the node, remove the children you don't want copy and instance the new copied and pasted node