]> marstr Code Repo - orthographic/commitdiff
Correction for multi-source fading and fixed bug in normal map generation. Final...
authorMarcus Str <marcus@marstr.online>
Sun, 29 Sep 2024 11:19:52 +0000 (13:19 +0200)
committerMarcus Str <marcus@marstr.online>
Sun, 29 Sep 2024 11:19:52 +0000 (13:19 +0200)
textures/boundary/administrative/brd/b1.png [new file with mode: 0644]
textures/boundary/administrative/brd/b2.png [new file with mode: 0644]
textures/boundary/administrative/brd/b3.png [new file with mode: 0644]
textures/boundary/administrative/ptc/b1_p1.png [new file with mode: 0644]
textures/boundary/administrative/ptc/b1_p2.png [new file with mode: 0644]
textures/boundary/administrative/ptc/b2_p1.png [new file with mode: 0644]
textures/boundary/administrative/ptc/b2_p2.png [new file with mode: 0644]
textures/boundary/administrative/ptc/b3_p1.png [new file with mode: 0644]
textures/boundary/administrative/ptc/b3_p2.png [new file with mode: 0644]
xp_normalmap.py

diff --git a/textures/boundary/administrative/brd/b1.png b/textures/boundary/administrative/brd/b1.png
new file mode 100644 (file)
index 0000000..921b503
Binary files /dev/null and b/textures/boundary/administrative/brd/b1.png differ
diff --git a/textures/boundary/administrative/brd/b2.png b/textures/boundary/administrative/brd/b2.png
new file mode 100644 (file)
index 0000000..13f583a
Binary files /dev/null and b/textures/boundary/administrative/brd/b2.png differ
diff --git a/textures/boundary/administrative/brd/b3.png b/textures/boundary/administrative/brd/b3.png
new file mode 100644 (file)
index 0000000..099ecfd
Binary files /dev/null and b/textures/boundary/administrative/brd/b3.png differ
diff --git a/textures/boundary/administrative/ptc/b1_p1.png b/textures/boundary/administrative/ptc/b1_p1.png
new file mode 100644 (file)
index 0000000..954bdf9
Binary files /dev/null and b/textures/boundary/administrative/ptc/b1_p1.png differ
diff --git a/textures/boundary/administrative/ptc/b1_p2.png b/textures/boundary/administrative/ptc/b1_p2.png
new file mode 100644 (file)
index 0000000..61e1afa
Binary files /dev/null and b/textures/boundary/administrative/ptc/b1_p2.png differ
diff --git a/textures/boundary/administrative/ptc/b2_p1.png b/textures/boundary/administrative/ptc/b2_p1.png
new file mode 100644 (file)
index 0000000..347a7ea
Binary files /dev/null and b/textures/boundary/administrative/ptc/b2_p1.png differ
diff --git a/textures/boundary/administrative/ptc/b2_p2.png b/textures/boundary/administrative/ptc/b2_p2.png
new file mode 100644 (file)
index 0000000..ec82ffa
Binary files /dev/null and b/textures/boundary/administrative/ptc/b2_p2.png differ
diff --git a/textures/boundary/administrative/ptc/b3_p1.png b/textures/boundary/administrative/ptc/b3_p1.png
new file mode 100644 (file)
index 0000000..86d472c
Binary files /dev/null and b/textures/boundary/administrative/ptc/b3_p1.png differ
diff --git a/textures/boundary/administrative/ptc/b3_p2.png b/textures/boundary/administrative/ptc/b3_p2.png
new file mode 100644 (file)
index 0000000..c513faa
Binary files /dev/null and b/textures/boundary/administrative/ptc/b3_p2.png differ
index 1394defed83e2c8467e4c48cd7284b0017981369..059aa8d815f7a0f7788f8f3fb0795e3afec5f4f3 100644 (file)
@@ -130,7 +130,7 @@ class mstr_xp_normalmap:
                         nrm[1] = abs(nrm[1])\r
 \r
                     # Set pixel\r
-                    nmp_pix[x,y] = (int(self.map_component(nrm[0])), int(self.map_component(nrm[1])), int(self.map_component(nrm[2])), 1)\r
+                    nmp_pix[x,y] = (int(self.map_component(nrm[0])), int(self.map_component(nrm[1])), 255 - int(self.map_component(nrm[2])), 1)\r
 \r
         mstr_msg("xp_normalmap", "[X-Plane] Normal map generated")\r
         return nmp\r