r/howdidtheycodeit • u/jkmonger • Aug 31 '19
This moving projector in Control
https://gfycat.com/untimelyenergeticinexpectatumpleco
151
Upvotes
4
2
u/rightknighttofight Nov 06 '19
in unity one would use a projector and a spot light in the object.
https://answers.unity.com/questions/1496095/project-a-video-texture-using-unity5s-projector.html
2
2
2
u/Callumnibus Aug 31 '19
Potentially a decal using deferred rendering. Games often use these to apply "stickers" or bullet marks or splodges etc. to arbitrary geometry
61
u/CptCap Aug 31 '19
This is probably just a spot light with an animated projected texture.
It's essentially the same tech used everywhere (often called light cookies1 ) to give some texture/internal shadowing to the light.
It works by computing the angle from each lit pixel to the light source and then using that as UVs to look up the projected texture (with some added trigonometry)
[1] Unity doc on light cookies