migg
migg

Reputation: 21

Projecting a texture from plane to object with Unity

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?

Upvotes: 2

Views: 2379

Answers (1)

HoloLady
HoloLady

Reputation: 1043

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!

Upvotes: 1

Related Questions