]> git.tdb.fi Git - libs/gl.git/commit
Recognize a certain configuration of nodes as inverting Y for normals
authorMikko Rasa <tdb@tdb.fi>
Tue, 13 Apr 2021 08:33:13 +0000 (11:33 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 13 Apr 2021 08:33:13 +0000 (11:33 +0300)
commitd962add24cb7e55fa30b63763b4dbf7f37af0079
tree74b1b63f107d7f1780897fac9a55a5e614e0ace2
parentb5a249d7f4dbbbf91c970993eb0eb949797c5565
Recognize a certain configuration of nodes as inverting Y for normals

Models made for DirectX treat the normal map values as having positive
Y pointing toward the bottom of the image, which is opposite to what my
engine and Blender expect.  This allows fixing that without modifying
the original texture.
blender/io_mspgl/export_material.py
blender/io_mspgl/export_texture.py
blender/io_mspgl/material.py