Skip to content

Instantly share code, notes, and snippets.

@saim80
saim80 / gist:337e6d307e1650f0d6ad
Created June 18, 2015 05:25
Image magick script to merge grayscale textures into one image for PBR rendering.
#!/usr/bin/python
import optparse
import subprocess
import os
METALNESS_SUFFIX = "_metalness"
ROUGHNESS_SUFFIX = "_rough"
AO_SUFFIX = "_ao"
EMISSIVE_SUFFIX = "_emissive_power"
COLOR_SUFFIX = "_color"