The code was expecting vector to be normalized, however after applying inverted object matrix it was possible to have scale applied to it.
The code was expecting vector to be normalized, however after applying inverted object matrix it was possible to have scale applied to it.