History

Adding a simple manual exposure control to configure the tonemapping and expose it to js. Add a convenient way to access the Job._concept._data with template

samcake committed 10 years ago

Commit d2ebaef1 parent 2bbd5d818 files · +165 −12Browse files

Showing the changes to libraries/render-utils/src/DebugDeferredBuffer.cpp (1 of 18 files). Show all

Unified · Split

libraries/render-utils/src/DebugDeferredBuffer.cpp+2−2
@@ -49,7 +49,7 @@ static const std::string FUNCTIONS_PLACEHOLDER { "/*FUNCTIONS_PLACEHOLDER*/" }; · 48 unmodified lines
4949 std::string DebugDeferredBuffer::getCode(Modes mode) {
5050 switch (mode) {
5151 case DiffuseMode: {
52− QString code = "return vec4(texture(%1, uv).xyz, 1.0);";
52+ QString code = "return vec4(pow(texture(%1, uv).xyz, vec3(1.0 / 2.2)), 1.0);";
5353 return code.arg(SLOT_NAMES[Diffuse].c_str()).toStdString();
5454 }
5555 case AlphaMode: {
@@ -73,7 +73,7 @@ std::string DebugDeferredBuffer::getCode(Modes mode) { · 17 unmodified lines
7373 return code.arg(SLOT_NAMES[Depth].c_str()).toStdString();
7474 }
7575 case LightingMode: {
76− QString code = "return vec4(texture(%1, uv).xyz, 1.0);";
76+ QString code = "return vec4(pow(texture(%1, uv).xyz, vec3(1.0 / 2.2)), 1.0);";
7777 return code.arg(SLOT_NAMES[Lighting].c_str()).toStdString();
7878 }
7979 case CustomMode: