projects
/
opengl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
bc82363ec9a4eeb23b4df0e10edcb204d912a4a3
[opengl.git]
/
metallicroughness.py
1
#!/usr/bin/env python3
2
import cv2
3
4
import sys
5
6
metallic = cv2.imread(sys.argv[1])
7
roughness = cv2.imread(sys.argv[2])
8
9
roughness[:,:,0] = 0
10
roughness[:,:,2] = 0
11
12
metallic[:,:,1] = 0
13
metallic[:,:,2] = 0
14
15
cv2.imwrite(sys.argv[3], metallic + roughness)