diff options
author | Andreas Grois <andi@grois.info> | 2018-03-10 15:59:48 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-10 15:59:48 +0100 |
commit | d1cc4a53f5492d95c260a7871cc030c9b1b0a6e9 (patch) | |
tree | b0cb3cfa01d004b5c8ad5c26ef2af1c5930d9b8d /BuddhaTest/src/BuddhaTest.cpp | |
parent | 704ecb6bbabe4a73c45bb6ae2433754bb8260bde (diff) |
Add color scaling option (as 8 bit per channel is not really much)
Diffstat (limited to 'BuddhaTest/src/BuddhaTest.cpp')
-rw-r--r-- | BuddhaTest/src/BuddhaTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/BuddhaTest/src/BuddhaTest.cpp b/BuddhaTest/src/BuddhaTest.cpp index 9ac6ae3..32bd927 100644 --- a/BuddhaTest/src/BuddhaTest.cpp +++ b/BuddhaTest/src/BuddhaTest.cpp @@ -30,6 +30,7 @@ int main() unsigned int globalWorkGroupSizeZ = 1;
double pngGamma = 1.0;
+ double pngColorScale = 2.0;
GLFWwindow* window;
@@ -183,7 +184,7 @@ int main() {
std::vector<uint32_t> readBackBuffer(pixelCount);
glGetBufferSubData(GL_SHADER_STORAGE_BUFFER,4*2,4 * pixelCount,readBackBuffer.data()); //offset of 2*4, that's the dimension integers.
- Helpers::WriteOutputPNG(readBackBuffer,bufferWidth,bufferHeight, pngGamma);
+ Helpers::WriteOutputPNG(readBackBuffer,bufferWidth,bufferHeight, pngGamma, pngColorScale);
}
//a bit of cleanup
|