I stuck on that task I need quite simple fake light inside material.
So, lets use Dot product from Vec3 (light) and PixelNormalWS:
- object position will not change how object recieve the light
- changing light position will work as it should only if object location are 0.0.0
Well, lets transform light position vector from Absolute World Space to Local Space:
- we can move light or object and light recieving will be correct
- object can be everywhere in the world
If we rotate our object, the light will be also rotating.
How we can solve that? I try different transormations but looks like im missing something