aboutsummaryrefslogtreecommitdiff
path: root/BuddhaTest/src/BuddhaTest.cpp
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-22 23:23:30 +0100
committerAndreas Grois <andi@grois.info>2018-03-22 23:23:30 +0100
commit81863349bfc7fede772eac9b6fd8024f49380e42 (patch)
treeb4cafd7a04db93591f44121750f1b92369b6eeb3 /BuddhaTest/src/BuddhaTest.cpp
parente45b39dc2ebb76bc079677b1d186b6a5109d1a5b (diff)
Make preview use color scale and gamma
Diffstat (limited to 'BuddhaTest/src/BuddhaTest.cpp')
-rw-r--r--BuddhaTest/src/BuddhaTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/BuddhaTest/src/BuddhaTest.cpp b/BuddhaTest/src/BuddhaTest.cpp
index 4d7ab9f..3af5f44 100644
--- a/BuddhaTest/src/BuddhaTest.cpp
+++ b/BuddhaTest/src/BuddhaTest.cpp
@@ -163,8 +163,13 @@ int main(int argc, char * argv[])
glUseProgram(VertexAndFragmentShaders);
GLint widthUniformFragmentHandle = glGetUniformLocation(VertexAndFragmentShaders, "width");
GLint heightUniformFragmentHandle = glGetUniformLocation(VertexAndFragmentShaders, "height");
+ GLint gammaUniformFragmentHandle = glGetUniformLocation(VertexAndFragmentShaders, "gamma");
+ GLint colorScaleUniformFragmentHandle = glGetUniformLocation(VertexAndFragmentShaders, "colorScale");
glUniform1ui(widthUniformFragmentHandle, settings.imageWidth);
glUniform1ui(heightUniformFragmentHandle, bufferHeight);
+ glUniform1f(gammaUniformFragmentHandle, settings.pngGamma);
+ glUniform1f(colorScaleUniformFragmentHandle,settings.pngColorScale);
+
glClearColor(0.0f, 0.0f, 0.4f, 0.0f);
uint32_t iterationsPerFrame = 1;