Reapply "ui: brighten cameraview (#29744)" (#31846)

This reverts commit 023792c431.
pull/31847/head
Adeeb Shihadeh 1 year ago committed by GitHub
parent de7f14dbd7
commit c155749b29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      selfdrive/ui/qt/widgets/cameraview.cc

@ -41,6 +41,8 @@ const char frame_fragment_shader[] =
"out vec4 colorOut;\n" "out vec4 colorOut;\n"
"void main() {\n" "void main() {\n"
" colorOut = texture(uTexture, vTexCoord);\n" " colorOut = texture(uTexture, vTexCoord);\n"
// gamma to improve worst case visibility when dark
" colorOut.rgb = pow(colorOut.rgb, vec3(1.0/1.28));\n"
"}\n"; "}\n";
#else #else
#ifdef __APPLE__ #ifdef __APPLE__

Loading…
Cancel
Save