Projecting a texture from plane to object with Unity

2.2k views Asked by At

I'm trying to project a texture from a plane to a wall using raycasts. This should happen in realtime. Since the plane is larger than the wall, only part of the texture is supposed to appear on the front side of the wall. So moving the plane will also change the part of the texture on the wall. The wall can have windows etc so it's not just a simple cube. I already managed to get the texturecoordinates using raycasts, but I haven't yet managed to correctly put the texture on the wall. Any ideas how I might achieve this?

1

There are 1 answers

0
HoloLady On

Seems like you need a projector, this enables you to project an image on any model. It's mostly used for shadows but anything can be projected anywhere!