I am trying to use normal maps on my sprites using these formulas:
Set FX NormalMapExtended2 parameter 0 to (LayerToCanvasX(0,mouse.x,mouse.y))/WindowWidth
Set FX NormalMapExtended2 parameter 1 to (LayerToCanvasX(0,mouse.x,mouse.y))/WindowHeight
But when the window resizes the light source changes.
It looks perfect at a window height of about 360.
But full screen does not work at all.
What am I doing wrong?
https://drive.google.com/open?id=1ZTnhOZxR_KO4Vm3tK_PXXizMhUhpVsUJ