I make a test patch where I put both a mesh with texture and skinned one. They have absolutely different lighting, and light directions of the skinned mesh are in a total mess. I’ve tried to rotate skeleton’s main bone to find out if the problem is connected to orientation stuff, but I still a little bit confused.
OMG! I’ve just checked a skinning.gsfx and found “float norm = 0” instead of “float3” at line 29. I have no idea where the hell this teeny-weeny “3” has gone. I don’t even remember if I’ve opened this code before to have an opportunity to accidentally delete it. Maybe I have my own mister Hyde who did this.
Anyway, guys, thanks. Without your help I would spend sleepless hours trying to rebuild the model or doing something even more pointless.