X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=metallicroughness.py;fp=metallicroughness.py;h=bc82363ec9a4eeb23b4df0e10edcb204d912a4a3;hp=e4bf1b8d5595290824de5b493759e5a25cf07148;hb=be8759aec179d6d7bed58732134673870c596b4f;hpb=511a2c92fcb9dda82dd5d38b91ea03790d0cb7b2 diff --git a/metallicroughness.py b/metallicroughness.py index e4bf1b8..bc82363 100755 --- a/metallicroughness.py +++ b/metallicroughness.py @@ -9,7 +9,7 @@ roughness = cv2.imread(sys.argv[2]) roughness[:,:,0] = 0 roughness[:,:,2] = 0 -metallic[:,:,0] = 0 metallic[:,:,1] = 0 +metallic[:,:,2] = 0 -cv2.imwrite(sys.argv[3], roughness + metallic) +cv2.imwrite(sys.argv[3], metallic + roughness)