A how-to guide for sampling a 2D texture in worldspace as if it was projected from an arbitrary actor. Create fake shadows, or test occlusion, or project a texture onto surfaces without using decal actors.
https://dev.epicgames.com/community/learning/tutorials/nR/projecting-a-texture-in-worldspace
1 Like
Hi Joe… in the material you don’t show where you get “distance between the projector and the current pixel” from…
2 Likes
@Joe_Radak Hi, thanks so much for your kindness sharing, could I ask a question about how to set the “distance between the projector and the current pixel”, there is no relative answer for this in your tutorial, which may be really helpful if you can write a little about this part. Thanks!!!
The distance between the projector and the current pixel is the result of the Distance node with inputs from the “AbsoluteWorldPosition” and “ProjectorLocation” nodes.
1 Like