Erayd
Member
I'm trying to find a way to change the color of only the pixels on an object that are being overlapped by the pixels of another. For example, there is a house in a 2.5d environment, an NPC walks behind the house but their head is still visible.
At this point, the body is invisible, unless I get the pixels in the house that are being drawn at the same coordinate as the NPC's pixels and then change those pixels to show a shadow or a highlight of the npc.
It's hard to explain so if anyone has any questions, please ask. I feel like this is something I can accomplish in shaders I just can't think of how I'm to go about that. I can get the texture of the NPC and send it to the house shader but that doesn't tell me the room position right? I don't know :/
At this point, the body is invisible, unless I get the pixels in the house that are being drawn at the same coordinate as the NPC's pixels and then change those pixels to show a shadow or a highlight of the npc.
It's hard to explain so if anyone has any questions, please ask. I feel like this is something I can accomplish in shaders I just can't think of how I'm to go about that. I can get the texture of the NPC and send it to the house shader but that doesn't tell me the room position right? I don't know :/