How to write light function/shader for point light like unreal engine4

You mean like an image projection from a point? See this thread: Texture Projection

Hm, actually it can be solved much easier with a CubeTexture, if you don’t care about rotation… I am not sure I can resist this one…

3 Likes