Download

How to gamma correct runtime imported normal maps?

I’m importing texture sets (Base color, normal, roughness) textures on runtime with Ramas Victory plugins. Despite after the import setting the compression settings to normal and disabling srgb Unreal don’t convert any map to linear and the normals and roughness get shafted. Gamma correcting roughness with 2.2 in shader is easy for roughness, but how to do it with the normals?
Unreals internal normal format should be -1 to 1 per channel, but bringing -1 to 1 range to 0-1, then power 0.45, then expand the range back to -1 to 1 didn’t do it.
How do I gammacorrect normals in shader?