Improve skygen (#679)

Bring back the normalization and gamma correction command line flags,
render the ground in the lower half of the image.
This commit is contained in:
Romain Guy
2019-01-08 07:19:50 -08:00
committed by GitHub
parent 83c40e6664
commit 9ce88e6e23
2 changed files with 56 additions and 30 deletions

View File

@@ -711,7 +711,7 @@ EXREncoder::~EXREncoder() {
}
static int toEXRCompression(const std::string& c) {
if (c == "") {
if (c.empty()) {
return TINYEXR_COMPRESSIONTYPE_PIZ;
} else if (c == "RAW") {
return TINYEXR_COMPRESSIONTYPE_NONE;