Hi,
I want to achieve the lighting effect like these reference games on a phone project pref. via render textures,but I can’t find a way to mask the light area for directional light into unity, nor there seems a suitable way.
Thanks for taking a minute out to read this.
There are a few ways to do this. The easiest one is probably light cookies:
(disclaimer: don’t know if this works for directional lights but they do have a position, so it could).
@c0d3_m0nk3y Thanks for your reply.
I tried this in built in pipeline even before your suggestion but it didn’t work, but when I tried in URP it worked. So kinda confused as what might be the cause ? But anyways it worked for me.