Generating blue normal map channel from red and green channels
I managed to generate the Z channel in the normal map according to this scheme (taken from UE4). In the &quot;normal&quot; texture, everything is as usual, only the Blue channel, replaced by roughness.