0xafbf / blender-datasmith-export

Blender addon to export UE4 Datasmith format
GNU General Public License v3.0
388 stars 49 forks source link

Detect and ignore normal map G channel inversion setups in materials #50

Open lasa01 opened 3 years ago

lasa01 commented 3 years ago

If you want to use DirectX-style normal maps in Blender, you usually add in a green channel inversion setup such as this: image Alternatively, an (color) invert node could be used instead of the subtract node.

Since UE already uses DirectX-style normal maps, the exporter should detect and ignore these setups (and not enable the inverted green channel in UE).