Skip to content

Commit

Permalink
ui: brighten cameraview (#29744)
Browse files Browse the repository at this point in the history
* test

* test2

* Revert "test2"

This reverts commit 22e38f8.

* Revert "test"

This reverts commit 717490c.

* looks fine

* mid

* description

---------

Co-authored-by: Comma Device <device@comma.ai>
  • Loading branch information
ZwX1616 and Comma Device authored Sep 5, 2023
1 parent ed7a0bf commit a08cdfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions selfdrive/ui/qt/widgets/cameraview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const char frame_fragment_shader[] =
"out vec4 colorOut;\n"
"void main() {\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";
#else
const char frame_fragment_shader[] =
Expand Down

0 comments on commit a08cdfd

Please sign in to comment.