skygen handles rgb_11_11_10
This commit is contained in:
committed by
Mathias Agopian
parent
9358650bd4
commit
aeec6f2df5
@@ -178,6 +178,7 @@ static void generateSky(LinearImage image) {
|
||||
case ImageEncoder::Format::PNG_LINEAR: break;
|
||||
case ImageEncoder::Format::HDR: break;
|
||||
case ImageEncoder::Format::RGBM: break;
|
||||
case ImageEncoder::Format::RGB_10_11_11_REV: break;
|
||||
case ImageEncoder::Format::PSD:
|
||||
if (g_compression != "32") {
|
||||
hdrScale = 1.0f / maxValue;
|
||||
@@ -242,7 +243,7 @@ static void printUsage(const char* name) {
|
||||
" print this message\n\n"
|
||||
" --license\n"
|
||||
" Print copyright and license information\n\n"
|
||||
" --format=[exr|hdr|rgbm|psd|png|dds], -f [exr|hdr|rgbm|psd|png|dds]\n"
|
||||
" --format=[exr|hdr|rgbm|rgb32f|psd|png|dds], -f [exr|hdr|rgbm|rgb32f|psd|png|dds]\n"
|
||||
" specify output file format, inferred from file name if omitted\n\n"
|
||||
" --compression=COMPRESSION, -c COMPRESSION\n"
|
||||
" format specific compression:\n"
|
||||
@@ -329,6 +330,10 @@ static int handleArguments(int argc, char* argv[]) {
|
||||
g_format = ImageEncoder::Format::RGBM;
|
||||
g_formatSpecified = true;
|
||||
}
|
||||
if (arg == "rgb32f") {
|
||||
g_format = ImageEncoder::Format::RGB_10_11_11_REV;
|
||||
g_formatSpecified = true;
|
||||
}
|
||||
if (arg == "exr") {
|
||||
g_format = ImageEncoder::Format::EXR;
|
||||
g_formatSpecified = true;
|
||||
|
||||
Reference in New Issue
Block a user