This took me embarrassingly long to figure out (I am not good at transformation matrixes).
This is essentially an aim constraint π, but in shader.
I am planning to use this for lighting debugging in VRChat worlds, but it could also have some other use cases when combined with scripting.
3 months ago